用jQuery实现图片的动画效果非常简单.以下演示 jQuery里面所用到的参数 HIDE SHOW FADEOUT FADEIN 的不同.
在线演示:单击演示
代码分析:
//hide and show fadeout and fadein
$("input:eq(0)").click(function(){
$("img").fadeOut(3000);
});
$("input:eq(1)").click(function(){
$("img").fadeIn(1000);
});
$("input:eq(2)").click(function(){
$("img").hide(3000);
});
$("input:eq(3)").click(function(){
$("img").show(1000);
});
动画就这么简单
转载于:https://www.cnblogs.com/net_nb2/archive/2008/08/22/1273911.html