i have a photo gallery that is made of two pages: one is a simple html with Thumbnails and when you press a thimbnail it opens a window with the enlargement of the thumbnail. and you can also step through the pictures in the window with buttons . so i built an array and i have functions for going forward and backwards. and in order to show the picture i have this:
Code:
ShowPhoto (Images[loc].src);
//Images is the name of my array
}
function ShowPhoto (filename)
{
pic.src=filename;
pic.alt="Filename: "+filename;
window.status=filename;
}
so loc represents the number of the picture that is going to show. and what i think i need to do is to be able to change loc from the page with the thumbnails according to the thumbnail that is being pressed.
how can i do it? can any bodey help me? thank you
|