jQuery实现图片切换
?
$(document).ready(function(){var beauBeauSlide;var imgBox=$("#imgBox ul li");var index=0;var int=imgBox.length;autoScroll();function autoScroll(){imgBox.not(index).hide(); imgBox.eq(index).fadeIn("slow");index++;index=index>=int?0:index;beauBeauSlide = setTimeout(autoScroll, 5000);}function stopScroll(){ clearTimeout(beauBeauSlide);}});?