jQuery日本語リファレンス

jQuery does not mean Japanese Query...

ヌー

Selectors/API/jQuery - Sample Code

:animated

 
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" 
 "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
 <script src="http://code.jquery.com/jquery-latest.js"></script>
 
 <script>
 $(document).ready(function(){
 
 $("#run").click(function(){
 $("div:animated").toggleClass("colored");
 });
 function animateIt() {
 $("#mover").slideToggle("slow", animateIt);
 }
 animateIt();
 });
 </script>
 <style>
 div { background:yellow; border:1px solid #AAA; width:80px; height:80px; margin:5px; float:left; }
 div.colored { background:green; }
 </style>
</head>
<body>
 <button id="run">Run</button>
 <div></div>
 <div id="mover"></div>
 <div></div>
</body>
</html>
 
 
[実行結果] [フレーム]
[:animated の説明へ]
© Copyright 2009 by semooh.jp | Design by Free CSS Templates - Thanks to Dubai Apartments

AltStyle によって変換されたページ (->オリジナル) /