css
#marquee {overflow:hidden;200px;height:50px;}
html
<div id="marquee"> <ul> <li></li> <li></li> </ul> </div>
js
$("#marquee").kxbdMarquee({ isEqual:true, //所有滚动的元素长宽是否相等,true,false loop:0, //循环滚动次数,0时无限 direction:"left", //滚动方向,"left","right","up","down" scrollAmount:1, //步长 scrollDelay:20 //时长 });
转自 http://www.jq22.com/jquery-info1077
js下载链接 https://blog-static.cnblogs.com/files/qing1304197382/jquery.kxbdMarquee.js