forward and backward image button


#1

Hello
I have a directory of images with numerical names (1.jpg, 2.jpg, etc.) and i want to make 2 buttons for my site. one that will go forward through the images and the other backwards.

does any1 have any idea if it’s possible and how to do this kind of thing?

i don’t know much about action script but i used to learn C in school. so i thought that maybe
it is possible to make a loop that will
use a var lets say “a” and to start with a=1. the image will be “a”.html (is it possible to use variables for file names???)
then when i press on the forward button a=a+1 and that way it will show the next image

what do you think?

any ideas??


#2

This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.