今天练习了个Jquery淡入淡出的特性代码如下:
[url=1.jpg]<span></span>
<img src="1.jpg" alt="" />
</a>
<a href="2.jpg">
<span></span>
<img src="2.jpg" alt="" />
</a>
</div>
<div id="gallery2">
<h2>jQuery solution</h2>
<a href="1.jpg">
<img src="1.jpg" alt="" />
</a>
<a href="2.jpg">
<img src="2.jpg" alt="" />
</a>
</div>
</body>
</html>
用到的图片:[img]http://files.jb51.net/upload/201012/20101213164253270.jpg[/img]
[img]http://files.jb51.net/upload/201012/20101213164253420.jpg[/img]
[img]http://files.jb51.net/upload/201012/20101213164253561.png[/img]
一个淡入淡出小例子:
<body>
<form action="" method="post" id ="myform">
<button value="Click Me">Click Me</button>
<p style="background:red;" >context<br>context<br>context<br>context</p>
</form>
</body>
</html>
Jquery代码
[url=http://demo.jb51.net/js/zoom_icon%20to_images/index.htm]http://demo.jb51.net/js/zoom_icon%20to_images/index.htm[/url]