Multiple Galleries with Captions
1. Introduction and Example
The array is an array of objects rather than an array of images because this script not only displays the images but it displays a caption under each image as well. We'll look at a couple of different ways you can define the array when we look at how to add the script to your page.
Note that this script preloads the next image while the prior image is displaying so as to minimise the delay in displaying the page at the start while ensuring that each image is available immediately when needed. This will only cause a problem if you try to cycle through the images more quickly than the browser can download them all.
If you want to add image galleries like this to your site then the first thing you need to do is to obtain the script.