I found a jquery image rotatation script and adding hyperlinks to the images breaks the animation
问题 Found this great article on using jquery for image swapping: http://jquery-howto.blogspot.com/2009/05/replacing-images-at-time-intervals.html How do you suggest I hyperlink the images? 回答1: Learn how jquery works and fix it! Or use a plugin such as the cycle plugin - this still requires some knowledge of jquery. 回答2: Untested but it should work... function swapImages(tag){ var element = tag||'img'; var $active = $('#myGallery '+tag+'.active'); var $next = ($('#myGallery '+tag+'.active').next(