Rss 试图让滑块工作,“appendTo”不工作
正在尝试修复我的网站上显示一些RSS提要的小部件。已获得滚动,但无法确定如何重新启动滚动 我尝试了“Appendo”,但没有成功。我找不到解决方案,请帮助我 问候 作用${ $.fn.vTicker=函数选项{ var默认值={ 速度:700,, 暂停:3000, 展览项目:三,, 动画:, 鼠标垫:是的, 原因:错误 }) }); }jQueryRss 试图让滑块工作,“appendTo”不工作,rss,scroll,slider,Rss,Scroll,Slider,正在尝试修复我的网站上显示一些RSS提要的小部件。已获得滚动,但无法确定如何重新启动滚动 我尝试了“Appendo”,但没有成功。我找不到解决方案,请帮助我 问候 作用${ $.fn.vTicker=函数选项{ var默认值={ 速度:700,, 暂停:3000, 展览项目:三,, 动画:, 鼠标垫:是的, 原因:错误 }) }); }jQuery var options = $.extend(defaults, options); moveUp = function(obj2, height
var options = $.extend(defaults, options);
moveUp = function(obj2, height, paused){
if(paused) return;
var obj = obj2.children('ul');
first = obj.children('li:first').clone(true);
obj.animate({top: '-=120px'}, options.speed, function() {
$(this).children('li:first').remove();
first.appendTo(obj);
});
if(options.animation == 'fade') {
obj.children('li:first').fadeOut(options.speed);
obj.children('li:last').hide().fadeIn(options.speed);
}
first.appendTo(obj);
};
return this.each(function() {
var obj = $(this);
var maxHeight = 0;
var itempause = options.isPaused;
//obj.css({overflow: 'hidden', position: 'relative'})
obj.css({position: 'relative'})
.children('ul').css({position: 'absolute', margin: 0, padding: 0})
.children('li').css({margin: 0, padding: 0});
obj.children('ul').children('li').each(function(){
if($(this).height() > maxHeight) {
maxHeight = $(this).height();
}
});
obj.children('ul').children('li').each(function() {
$(this).height(maxHeight);
});
obj.height(maxHeight * options.showItems);
var interval = setInterval(function(){ moveUp(obj, maxHeight, itempause); }, options.pause);
if (options.mousePause)
{
obj.bind("mouseenter",function() {
itempause = true;
}).bind("mouseleave",function() {
itempause = false;
});
}
});