Internet Explore 8 won't change image src with .attr()
问题 I have set up a page which will flick through a sequence of images as the user scrolls with their mouse or trackpad. I'm using jQuery to measure the distance from the top of the page - scrollTop() - to then change the image source for a particular id in the DOM. This is working perfectly in Firefox, Chrome, Safari, Opera, IE9 and also on the iPad, iPhone, etc. HOWEVER, it doesn't work in IE8. This is the HTML: <div id="flipping-container"> <img id="flipping-id" class="flippingTarget" src=