View Full Version : Image Thumbnail Viewer II - Next and Previous Links

08-02-2007, 11:44 AM
1) Script Title: Image Thumbnail Viewer II

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex4/thumbnail2.htm

3) Describe problem: Hi everyone. The script works great but I've been asked to provide a next and previous link beside each image (even though the entire gallery is thumbnailed beside the main picture). Since the file name never changes, what should I pass as a link to my anchor tags to go forward and back one picture at a time?

08-02-2007, 04:53 PM
I've figured it out. Feel a bit dumb, all it needed was an onclick in my next anchor link :rolleyes:

08-02-2007, 06:01 PM
Actually, it turns out I'm dumber than I thought. The above solution really isn't a solution at all. That only works for linking from the first image to the second one. I still need to find a way of detecting what image is being displayed as the main image, and then dynamically generating the next and previous links. I hope all that made sense. Thanks to anyone who can have a go.