Changing an image src attribute with jQuery not always applied in Chrome/Opera
问题 I have the following bit of code which is used to retrieve a small high-res portion of a photo on my website. The idea being to let people have a glimpse at the original's quality before deciding whether to purchase or not: $('#magviewplus').attr('src', '/photos/original-snippet.php?id=<?php echo $nID?>&x='+left+'&y='+top).load(function() { window.clearInterval(maginterval); magtimer=3; maginterval=window.setInterval(magViewCountdown,1000); $('#clicktoenhance').html('Exiting in '+magtimer+'s.