Revenant
09-15-2005, 02:59 AM
Hi.
I've currently got a page of small photo's in which visitors can click one to display a 'pop-up' style page of the photo clicked on. This second page displays the photo in full and I have some Javascript & input buttons so a user can click back & forward through all the photos that were originally displayed.
This can be seen here: http://www.simonwray.dsl.pipex.com/cressing_photo.htm (though note I am in the process of making my code more Firefox/W3 compliant, so it may not look pretty!).
This currently works by me having each main image on a page with the Javascript, buttons, etc, and the main page just links to each of these so when you click the small photo you display that full photo & the JS handles navigation (via an array) of each image in turn. (see http://www.simonwray.dsl.pipex.com/tech_photoviewer.htm for the code).
The problem is this means I have to maintain a page for each photo so I can provide a link to it.
What I'd rather have is the one photo page being passed a variable/parameter and have it start with this photo & then have the same navigation back & forward through the pictures.
I have a fairly standard ISP so I don't get .asp or .php, just scripting. Can anyone give me a way to do this?
Thanks
Simon
I've currently got a page of small photo's in which visitors can click one to display a 'pop-up' style page of the photo clicked on. This second page displays the photo in full and I have some Javascript & input buttons so a user can click back & forward through all the photos that were originally displayed.
This can be seen here: http://www.simonwray.dsl.pipex.com/cressing_photo.htm (though note I am in the process of making my code more Firefox/W3 compliant, so it may not look pretty!).
This currently works by me having each main image on a page with the Javascript, buttons, etc, and the main page just links to each of these so when you click the small photo you display that full photo & the JS handles navigation (via an array) of each image in turn. (see http://www.simonwray.dsl.pipex.com/tech_photoviewer.htm for the code).
The problem is this means I have to maintain a page for each photo so I can provide a link to it.
What I'd rather have is the one photo page being passed a variable/parameter and have it start with this photo & then have the same navigation back & forward through the pictures.
I have a fairly standard ISP so I don't get .asp or .php, just scripting. Can anyone give me a way to do this?
Thanks
Simon