主要用了setInterval方法定时任务function timer(opj){ $(opj).find('ul').animate({ marginTop : "-3.5rem" },500,function(){ $(this).css({marginTop : "0.7rem"}).find("li:first").appendTo(this); }) } $(function(){ var num = $('.notice_active').find('li').length; if(num > 1){ var time=setInterval('timer(".notice_active")',3500); $('.gg_more a').mousemove(function(){ clearInterval(time); }).mouseout(function(){ time = setInterval('timer(".notice_active")',3500); }); } $(".news_ck").click(function(){ location.href = $(".notice_active .notice_active_ch").children(":input").val(); }) });
文件目录······
暂无数据
猜你喜欢
更多»
项目推荐
更多»
PDF电子书
更多»
Java多线程编程核心技术
(2)
Linux命令详解词典.pdf
(5)
深入Python3中文版
(0)
百度SEO一本通.pdf
(0)
mysql必知必会.pdf
(2)
疯狂JAVA讲义 pdf电子书
(3)
C# 图解教程pdf电子书
(3)
研磨设计模式 pdf电子书
(0)