I have a page which has two frames ('content' on left and 'main' on right).
In the 'content' frame are various links which I wish to use to change the
image in the 'main' frame but leave the rest of the frame details intact.
I have named the image as 'mainimage' with the following -
<p align="center"><img border="1" src="imagedir/picture1.jpg"
name="mainimage" width="390" height="293"></p>
I am trying to right a piece of script which will change the image when user
click on the various links. I would have thought that the following would
have worked but all it seems to do is right the image name in the main
frame.
href="javascript:parent.main.document.images['mainimage'].src =
'imagedir/picture2.jpg'"
Any suggestions as to where I am going wrong would be appreciated.
Thanks
Peter