var left1 = 0;
var left2 = 1380;
function func() {
left1 -= 690;
left2 -= 690;
$(“flbanner1”).style.left = left1 + “px”;
$(“flbanner2”).style.left = left2 + “px”;
if (left1 <= -1380){
left1 = 1380;
}
if (left1 < 0) {
$(“flbanner1”).style.zIndex = 222
}else if(left1 > 0){
$(“flbanner1”).style.zIndex = 11
}
if (left2<=-1380){
left2 = 1380;
}
if (left1 < 0) {
$(“flbanner2”).style.zIndex = 222
}else if (left1 > 0){
$(“flbanner2”).style.zIndex = 11
}
}
setInterval(“func()”,5000)
手撸轮播
最新推荐文章于 2022-03-24 16:27:00 发布