next back
- Started
- Last post
- 4 Responses
- sexypixel
I have a few photo series on my sit eand intend to add more on a regular basis, but the way i'm coding it now, is, you click the title image and a pop up opens with the first image with a 'next' and 'previous' link to navigate thesite. But, for the next and back buttons i have to code them manually one by one and this is a pain in the balls. can anyone point me to a javascript function that will do the next and back shitz for me.
I have been searching now for a month, hotscripts, javascripts.com w3schools, the holelot and no joi.example
http://www.tonydolan.com/images/…thanking you!
- unformatted0
php/asp would be easy to do this
- sexypixel0
ya, im not to up on my php. Ive looked through all those php galleries and they do too much. I just want to asign a simple script that will take the user to the next htm page in a numberic order. There must be something out there
- unformatted0
what if you had a variable like
totalPhotos = n;
n being the total number of photos there are.
then name your photos numerically, and your next button would be
currentPhoto + 1;
pass that variable onto the next page.
----------------------
sorry if rambling. ;)
- sexypixel0
sounds good, will try that.