1 <script type="text/javascript"> 2 3 var t = setInterval(AutoScroll(".isBIM_single_news"), 2000); 4 5 ...
1 <script type="text/javascript"> 2 3 var t = setInterval('AutoScroll(".isBIM_single_news")', 2000); 4 5 $(document).ready(function () 6 { 7 8 $("#isBIM_news_content").mouseenter(function () 9 {10 clearInterval(t);11 })12 13 $("#isBIM_news_content").mouseleave(function ()14 {15 t= setInterval('AutoScroll(".isBIM_single_news")', 2000);16 })17 18 });19 20 function AutoScroll(obj)21 {22 $(obj).find("ul:first").animate({ marginTop: "-170px" }, 1200, function ()23 {24 $(this).css({marginTop:"0px"}).find("li:first").appendTo(this);25 });26 }27 </script>
原标题:JQuery新闻滚动的实现方法(常用笔记1)
关键词:jquery
*特别声明:以上内容来自于网络收集,著作权属原作者所有,如有侵权,请联系我们:
admin#shaoqun.com
(#换成@)。