jQuery: Every 5 seconds, automatically click on next image in a list?
问题 I have a given list of images, presented as thumbnails: <ul id="thumbs"> <li class="small-img"><img src="images/feature1.png" /></li> <li class="small-img"><img src="images/feature2.png" /></li> <li class="small-img"><img src="images/feature3.png" /></li> </ul> I use jQuery so that, when the user clicks on an image, it replaces the featured image in a div (which I got from another StackOverflow Ask): $('#thumbs img').click(function(){ $('div.feature-photo img').hide().attr('src',$(this).attr(