|
Hi all,
I am just designing a photo gallery site that stores each image as a record within a mysql database.
My main page for each particular shoot displays the thumbnail images of every record/(image) within that gallery. The images on this page have been filtered by the gallery name in the database which is a field in the database.
Each thumbnail, when clicked will then link to a new page which displays the large image. When the thumbnail is clicked, it passes the parameter of the gallery name and the image thumnail reference (both these are stored in the same table).
To create a recordset of all the images to be displayed, it is filtered by the gallery same from the url parameter so that all the same images are selected.
I then display each image using a repeated region in Dreamweaver set to 1 record per page so that only one record/(image) is shown per page, and to then view the previous or next image, it is done by a link that uses the Move To Next (or previous) Page behaviour.
This now gives me the ability to view images one at a time and the next or previous one can be viewed by clicking a link that navigates to the next record.
What this does do though by default is display the first record, and what I would like it to do is when the thumbnail is clicked, it loads the large images page and shows the image of the thumbnail that was clicked. For example, if I clicked a thumbnail called 0050.jpg halfway through the record set, it would then load the large image page and display the large image of 0050.jpg and keep the ability to navigate next or previous to either 0051.jpg or 0049.jpg. Therefore in effect, the image displayed is the one selected (from the url parameter in this case) and not reverted to the first one in the recordset each time.
Any ideas how to get round this?
|