in HTML can i do an onclick and make it change say a picture, if the onclick is in a...

Andy

New member
...frame? the title says it all, i have a photo album, i have created a seperate frame for a list of all the pictures, and would like an enlarged version to change depending on which thumbnail has been clicked. I could do it if it wasn't in a frame with the whole onclick event, however i'm presuming that doesn't work from inside a frame?

Any advice would be greatly appreciated =D

Andy.
 
i think i understand... just make the pic a hyperlink that links to the image file, target="frame#" or w/e, my html is a wee bit rusty, been working on flash and dreamweaver if at all the last lil while...
 
i think i understand... just make the pic a hyperlink that links to the image file, target="frame#" or w/e, my html is a wee bit rusty, been working on flash and dreamweaver if at all the last lil while...
 
Yes u can do in HTML but u need to use javascript and u must be famiiar with frames in jscript. I guess u know this

Fist load all your images in to an array name all the images in sequence like image1,image2,...

Now create a function that run by onclick

Now the fun too should locate the current image and change it's source lime image + 1 to image +2 so on

And that's it
Jscript code I long so I can not.post here as am on work but this will help u but javascript is must.

Good luck
 
Back
Top