jquery文字上下滚动的实现方法
摘要:复制代码代码如下://上下滚动vartextRoll=function(){$('#noticep:last').css({'height'...
复制代码 代码如下:
//上下滚动
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文字上下滚动的实现方法】相关文章:
★ JS或jQuery获取ASP.NET服务器控件ID的方法
上一篇:
JS模块与命名空间的介绍
下一篇:
JQuery实现用户名无刷新验证的小例子