您的位置:首页 > Web前端 > JQuery

jQuery 实现图片的特效1[原]

2008-08-22 11:32 316 查看
用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);

});

动画就这么简单
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: