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

利用jQuery制作类似skype的按钮效果

2009-04-29 23:35 537 查看
演示:
http://www.cssrain.cn/demo/skypebuttons/SkypeButton.html http://www.cssrain.cn/demo/skypebuttons/SkypeButton2.html
关键代码:

$(document).ready(function(){

$(".button").hover(function(){

if(!$(".button img").is(":animated")){

$(".button img")

.animate({top:"-10px"}, 200).animate({top:"-4px"}, 200)

.animate({top:"-7px"}, 100).animate({top:"-4px"}, 100)

.animate({top:"-6px"}, 100).animate({top:"-4px"}, 100);

}

});

});

本篇文章来源于 cssrain.cn 原文链接:http://www.cssrain.cn/article.asp?id=1337
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: