这里是我的代码,到目前为止,jQuery的,垂直滑动文本只是熄灭屏幕而不盘旋回
function richardsSuperAmazingVerticalTextScroller(){
$('#honor-roll ul').animate(
{
top: '-=' + $('#honor-roll ul li:last').height()
},
1000,
'linear',
function(){
var offset = $('#honor-roll ul li:last').offset().top;
console.log(offset);
if(offset <= 640){
$('#honor-roll ul li').css("margin", 0);
$('#honor-roll ul li:last').after($('#honor-roll ul li:first').detach());
}
}
);
}
$(document).ready(function(){
setInterval('richardsSuperAmazingVerticalTextScroller()',1000)
});
上的jsfiddle它完美的作品,但在这个版本中失败的话,http://barkins.com/test.html
这里是小提琴上的相同码,http://jsfiddle.net/qmFD3/6/
任何人都可以发现问题吗?谢谢
我对网站进行了更新,但仍然存在相同的问题。以下是更新后的版本,http://barkins.com/test.html – Richard 2013-04-24 15:04:32
您使用的是不同版本的jQuery。你为什么不使用1.9.1? – 2013-04-24 15:37:41
宾果!不幸的是,我将代码插入的CMS内置了旧版本的jQuery。我需要尝试插入更新的版本,并查看它是否工作,同时指向两个版本的jQuery。谢谢! – Richard 2013-04-24 15:45:54