【发布时间】:2011-07-31 23:02:35
【问题描述】:
这对我不起作用...
$(document).ready(function(){
$('#h .a').animate({
top:'-=80px'
},90,'linear');
$('#h .au,#h .di').animate({
left:'-=80px'
},50000000,'linear');
$('#h .r').animate({
left:'-=80px'
},250,'linear');
$("#h").animate('pause'); //pausing it at the start
//resume pause switch
$("#h").mouseover(function(){
$(this).animate('resume');
}).mouseout(function(){
$(this).animate('pause');
});
});
【问题讨论】:
-
Jquery animate 没有暂停/恢复功能,您可以使用插件或自己编写。
标签: javascript jquery jquery-animate