nNemethon
05-27-2004, 04:58 AM
Hello to all. ;)
I am in the middle of constructing a page that has multiple frames and also multiple links. confused? Not yet you aint ;)
Basically, I have a menu in one frame with approx 9 links. These links are all to open a corresponding document into 2 separate OTHER frames. 1 frame being the standard target-type, full information section, and the other frame being a heading to show what area of the menu you are browsing.
The question is this: How can I make all the menu items in the one frame do this? I can make one menu item change 2 diff frames, but I do not know how to code multiple links in the same frame to do such.
The general "change 2 frames" code I use is this:
<!----hide
function change2()
{
parent.frame1.location="frame1.html";
parent.frame2.location="frame2.html";
}
//------>
</SCRIPT>
<A HREF="javascript:change2()">LINK TEXT</A>
And the layout is this:
LINK1
LINK2
LINK3
etc...
FRAME1 (pretend this is a frame) ;)
FRAME2 (Ditto)
The links are in a separate frame, but all links will need to change the same 2 frames.
The page is coded for IE4+ so version-dependant code is a necessity unfortunately. (I run IE5+)
I thank-you if you can help me as I unable to find an answer.
nNemethon
I am in the middle of constructing a page that has multiple frames and also multiple links. confused? Not yet you aint ;)
Basically, I have a menu in one frame with approx 9 links. These links are all to open a corresponding document into 2 separate OTHER frames. 1 frame being the standard target-type, full information section, and the other frame being a heading to show what area of the menu you are browsing.
The question is this: How can I make all the menu items in the one frame do this? I can make one menu item change 2 diff frames, but I do not know how to code multiple links in the same frame to do such.
The general "change 2 frames" code I use is this:
<!----hide
function change2()
{
parent.frame1.location="frame1.html";
parent.frame2.location="frame2.html";
}
//------>
</SCRIPT>
<A HREF="javascript:change2()">LINK TEXT</A>
And the layout is this:
LINK1
LINK2
LINK3
etc...
FRAME1 (pretend this is a frame) ;)
FRAME2 (Ditto)
The links are in a separate frame, but all links will need to change the same 2 frames.
The page is coded for IE4+ so version-dependant code is a necessity unfortunately. (I run IE5+)
I thank-you if you can help me as I unable to find an answer.
nNemethon