I had the code below which allowed me to have 5 pics and when one is clicked it swapped with the main image, so you could move the 5 images around, 4 being thumbnails and 1 main image. It works fine, but I had to change it so that it didnt interfear with a history back button I had.

Then had to change it to the code below, and basically the images dont swap anymore, so once the first thumb is clicked it takes over the main image, and then that mainimage is lost, with only the 4 thumbnails to play with.

I feel I should just add a comment to this. The reason that the images stopped swapping is my fault because when (in a previous thread) I rewrote the JS to avoid the page reload problem, I changed the behaviour because I assumed that it was a mistake. Personally, I would avoid having the images swap when clicked because it's non-standard behaviour - it threw me at first when I saw it as I wasn't expecting it, and I think other visitors to your site will find it unintuitive at first too, as the position of each thumbnail changes as you click through them.

Pullo
—
2013-06-26T11:31:53Z —
#5

fretburner said:

I think other visitors to your site will find it unintuitive at first too, as the position of each thumbnail changes as you click through them.

That's a good point.Maybe using a simple gallery with thumbnails would be better instead?