在H5手机移动端网页上实现jquery公告无缝滚动

在H5手机移动端网页上实现jquery公告无缝滚动

 

 

代码实力来自 http://h.leomei.com

$(function() {
var listPanel = $('.announcement ul');
var nubcers = 0; //向上滚动top值
function announceUp() { //向上滚动
listPanel.animate({ //中奖结果
'top': (nubcers - 35) + 'px'
}, 2000, 'linear', function() {
listPanel.css({
'top': '0px'
}).find("li:first").appendTo(listPanel);
announceUp();
});
}
announceUp();
});

 

posted @ 2022-07-15 15:50  imcrony  阅读(311)  评论(0编辑  收藏  举报