当前位置:Gxlcms > JavaScript > JQuery循环滚动图片代码_jquery

JQuery循环滚动图片代码_jquery

时间:2021-07-01 10:21:17 帮助过:3人阅读

代码如下:

function refresh() {
var s = $(".box1");
if (!s.is(":animated"))
$(".box1").animate({ marginLeft: "0px" }, "slow", function () {
$('.box1 img:first').before($('.box1 img:last'));
$(".box1").css("margin-left", "-206px");
});
}


.box1
{
width:1200px;
overflow:hidden;
margin-left:-206px;
}
.frame
{
width:620px;
overflow:hidden;
}

图片宽度默认206px,没设定

人气教程排行