【发布时间】:2012-06-07 18:10:35
【问题描述】:
大家好,这是我的代码:
function scroll(obj) {
$(obj).animate({top:'-'+$('li:nth-child(1)', obj)
.outerHeight(true)}, 15000, 'linear', function(){
$(obj).css({top:0});scroll(obj);
});
}
只是想知道如何使它无限(保持循环或保持从上到下),而不是仅仅跳回顶部。
有什么想法吗?
【问题讨论】:
标签: javascript jquery html css web