This example is intended for a page of thumbnail images, where clicking on the image causes a larger version to be displayed.

This version makes the popup into a mini slideshow window by adding links to the next and previous images. Also the popup is centered in the page.

Finally, a script is included that preloads all the images so there is no delay in switching between them, which can occur if the image files are large and different from the thumbnail images.

thumb1 thumb2 thumb3 thumb4