The SitePoint Forums have moved.

You can now find them here.
This forum is now closed to new posts, but you can browse existing content.
You can find out more information about the move and how to open a new account (if necessary) here.
If you get stuck you can get support by emailing forums@sitepoint.com

If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

The problem in IE is that it works fine the first time a thumbnail is clicked, but when the user clicks the same thumbnail again, they don't get the new image appearing. Instead the "loading.gif" image appears indefinitely.

Just to clarify, there are 15 thumbnails. When thumbnails 1 through 15 are clicked one at a time, the larger images appears on the right side of the page just fine. But when the user tries to click the thumbnails AGAIN, they do not get the large image appearing -- they only see the "loading.gif" image. It seems that IE messes up the code where it says "nextImage.onload = function ()", since no code in the function actually runs when the thumbnail is clicked a 2nd time.

Does anyone have any idea why this is happening in IE6/7 but works fine in Firefox? There are no script warnings or errors in either browser.