【发布时间】:2013-08-16 13:30:04
【问题描述】:
好的,下面是主要功能:
function updown(){
var bottom = $(document).height()-$(window).height();
//scroll to bottom. scroll to 0. and execute updown().
$('body')
.animate({scrollTop:bottom},20000)
.animate({scrollTop:0},2000,updown);
}
updown();
然后我正在使用:
$('body').stop(true);
点击按钮停止动画队列
我的问题是如何重新启动动画队列?
所以例如$('body').play(true);,如果你明白我在说什么(虽然我知道它没有那么简单,哈哈)。 . .
提前感谢您的任何帮助!
【问题讨论】:
标签: javascript jquery function animation queue