JQuery文字列表向上滚动的代码
JQuery文字列表向上滚动的代码
发布时间:2016-12-30 来源:查字典编辑
摘要:jQuery实现代码如下:复制代码代码如下:$(function(){$("#newly").hover(function(){clearI...

jQuery实现代码如下:

复制代码 代码如下:

<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>

推荐文章
猜你喜欢
附近的人在看
推荐阅读
拓展阅读
相关阅读
网友关注
最新Javascript教程学习
热门Javascript教程学习
编程开发子分类