<span style="white-space:pre"> </span>/* 无缝式焦点图 */ var _left = 770; var left = -_left;//-770 function slideImg() { if(left == -3080 || left == 0) { _left = -_left; } $('.slidepics').animate({'left': left + 'px'},1000); left = left - _left; tim = setTimeout(slideImg,5000); } slideImg();
<span style="white-space:pre"> </span>/* 无缝式焦点图 */ var _left = 770; var left = -_left;//-770 function slideImg() { if(left == -3080 || left == 0) { _left = -_left; } $('.slidepics').stop().animate({'left': left + 'px'},1000); left = left - _left; tim = setTimeout(slideImg,5000); } slideImg();