源码网商城,靠谱的源码在线交易网站 我的订单 购物车 帮助

源码网商城

JQuery文字列表向上滚动的代码

  • 时间:2020-08-01 01:21 编辑: 来源: 阅读:
  • 扫一扫,手机访问
摘要:JQuery文字列表向上滚动的代码
jQuery实现代码如下:
[u]复制代码[/u] 代码如下:
<script type="text/javascript"> $(function(){  $("#newly").hover(function(){   clearInterval(scrtime);  },function(){   scrtime=setInterval(function(){    $ul=$("#newly ul");    liheight=$ul.find("li:first").height();    $ul.animate({marginTop:"-10px"},1000,function(){     $ul.find("li:first").appendTo("#newly ul");     $ul.find("li:first").hide();     $ul.css("margin-top","0px");     $ul.find("li:first").show();    });   },4200);  }).trigger("mouseleave"); }); </script>
  • 全部评论(0)
联系客服
客服电话:
400-000-3129
微信版

扫一扫进微信版
返回顶部