随着社会的发展计算机已经逐渐走进平常家庭,对计算机的熟练掌握也是时代所必需的,下面就让我们一起来欣赏这篇关于jquery文字上下滚动的教程的文章吧!
//上下滚动
var textRoll=function(){
$(#notice p:last).css({height:0px,opacity: 0}).insertBefore(#notice p:first).animate({height:35px,opacity: 1}, slow, function() { $(this).removeAttr(style);});
}
$(function(){
//触发上下文字滚动事件
var roll=setInterval(textRoll(),4000);
$("#notice p").hover(function() {
clearInterval(roll);
}, function() {
roll = setInterval(textRoll(), 4000)
});
});
以上就是精品为您准备的关于jquery文字上下滚动的教程的信息,希望对您的生活工作有帮助。