Go Back   CodingForums.com > :: Client side development > JavaScript programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 03-22-2005, 03:14 PM   PM User | #1
gravesen
New to the CF scene

 
Join Date: Mar 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
gravesen is an unknown quantity at this point
Changing more Iframes when click - back in browser only takes one page back - please

Hi I have a page that holds 2 iframes and a menubar in a table between.
I have a top Iframe that holds a flash animation. In the middle I have a table with a menu and a bottom Iframe that holds the content.
I have the following code for the iframes.

This is for using two pages at one click
<script language="javascript">
<!--
function loadTwo(iframe1URL, iframe2URL)
{
parent.FRAME1.location.href=iframe1URL
parent.FRAME2.location.href=iframe2URL
}
//-->
</script>

This is the code for the iframes 1 and 2
<iframe name="FRAME1" src="top_home.htm" width="800
" height="305" scrolling="NO" frameborder="0"><font size="2" face="Verdana, Arial, Helvetica, sans-serif">[Din browser understøtter ikke frames. Få dig en ny <a href="http://www.microsoft.com">her!</a>]</font></iframe>

I have a script so that when I click on a button in the menu the top Iframe changes and then also the bottom Iframe changes the main content. The works fine but if I click on the back bottom in the browser the only thing that changes is the bottom Iframe and not also the top. How can I make the page change both in the top and the bottom?

This is on each buttons
<a href="javascript:loadTwo('spillere_top.htm','spillere_bund.htm')" target="_top" onClick="MM_nbGroup('down','group1','spillere','images/spilleredown.gif',1)" onMouseOver="MM_nbGroup('over','spillere','','',1)" onMouseOut="MM_nbGroup('out')"><img src="images/spillere.gif" alt="Spillere" name="spillere" width="79" height="27" border="0" onload=""></a>


Thanks for all the help - please
Lars Gravesen

BTW. I also have a script for a down function on the buttons in the menu and I would also like this to “release” the down function for the button.
gravesen is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 04:28 AM.


Advertisement
Log in to turn off these ads.