动态 版块 发帖 消息 我的
xwylt
书山有路勤为径,学海无涯苦作舟
lytcreateLv13   
ul li自动向上轮播     
<div class=".mainNer_two_mid">
	<ul>
		<li></li>
	</ul>
</div>
function scorell(){
         var liH = $(".mainNer_two_mid>ul>li").eq(0).height();
         $(".mainNer_two_mid>ul").animate({"marginTop":-liH+"px"},600,function(){
             $(".mainNer_two_mid>ul").css({margin:0}).find("li:first").appendTo($(".mainNer_two_mid ul"))
         })
     }
$(function(){
	setInterval(function(){
	         scorell();
	     },3000)
})

 0  已被阅读了71次  楼主 2021-03-30 15:59:09
回复列表

回复:ul li自动向上轮播

Powered by Xwylt.com
© 2020-2021 lytcreate
您的IP:18.232.53.118,2021-04-23 01:12:53,Processed in 0.00763 second(s).
Powered by HadSky
书山有路勤为径,学海无涯苦作舟
已有0次打赏