Forum Moderators: open
Here's the deal: I have a page with three frames. Top frame, and underneath is a frame on the left, and one on the right. The left frame is used to hold a special image, which is to change according to the page that is loaded in the right frame, which holds the content. Top frame is navigation.
So what I've done is in each content page, in the BODY tag I say onLoad="picChange()"
and my picChange function contains the code necessary to change the image in the left frame.
It works perfect in IE5 and NS6, but NS4 likes to give me headaches. It just doesn't do anything
Any ideas? Does NS4 have trouble with onLoad events?
Thanks in advance,
Matt..
If it's not actually and onLoad event meaning that both frames change when a visitor clicks on a link, here's a script which has worked for me. On a three-frames page, it changes two frames on one click.
<script type="text/javascript"> <!--
function changePages(imageURL, contentURL) {
parent.image.location.href = imageURL;
parent.content.location.href = contentURL;
}
-->
</script>
Then for your link:
<a href="javascript:changePages(image_whatever.html', 'content_whatever.html');">Link</a>
Of course, you would change "image" and "content" to whatever your frames pages are actually called. Hope this helps.