注意:必须写在引jquery 包后面!
//button 动画
$(function(){
//input button 样式
$(":button").css({cursor:"pointer"}).stop(true,true).bind("mouseover",function(){
$(this).animate({"opacity":0.80},100);
}).stop(true,true).bind("mouseout",function(){
$(this).animate({"opacity":1.00},100);
});
//submit样式
$(":submit").css({cursor:"pointer"}).stop(true,true).bind("mouseover",function(){
$(this).animate({"opacity":0.80},100);
}).stop(true,true).bind("mouseout",function(){
$(this).animate({"opacity":1.00},100);
});
//reset样式
$(":reset").css({cursor:"pointer"}).stop(true,true).bind("mouseover",function(){
$(this).animate({"opacity":0.80},100);
}).stop(true,true).bind("mouseout",function(){
$(this).animate({"opacity":1.00},100);
});
//button 样式
$("button").css({cursor:"pointer"}).bind("mouseover",function(){
$(this).stop(true,true).animate({"opacity":0.80},100);
}).stop(true,true).bind("mouseout",function(){
$(this).stop(true,true).animate({"opacity":1.00},100);
});
//$(divFormError).animate({"opacity":0.87});
});
原创jquery-button 全局动画
最新推荐文章于 2024-07-21 03:40:38 发布