Click to See Complete Forum and Search --> : Multi-Frame Navigation (IE & Netscape)


rg2003
01-06-2003, 12:56 AM
Hi All..

I'm assuming this would be the appropriate forum for the following question:

I am generating a website consisting of 4 frames:

------
| 1 | locked header frame
------
| 2 | main nav frame
------
| |
| 3 | main data frame
| |
------
| 4 | sub nav frame
------

I have 9 main subpages, 4 of which have multiple sub-pages with each needing a visible link. I had tried the following javascript code for frame 2 to affect frame 3 & 4:

onClick="parent.frames[1].location='zippy5.html';
parent.frames[2].location='zippy6.html';
parent.frames[3].location='zippy7.html';">

(Code source Joe Burns @ HTML Goodies )
(code modified to fit my layout of course :) )

This code worked great in IE 6 but does not work in Netscape 4.7

Are there other options (easier? etc)?

Help appreciated

ShrineDesigns
01-06-2003, 01:20 AM
on one of my sites i have a similar setup

i used:

onClick="window.winName.location='URL'"

this may also work:

onClick="winName.location='URL'"

i don't think NN supports the "frames[i]"

DarkSoul
01-06-2003, 02:59 AM
Don't know if it would help, but this works for me.

<a href="../some/file.html" target="MainBody">Tech</a>

the "MainBody" is just the title of the page in which I want the link to appear.

rg2003
01-06-2003, 11:40 AM
Thanks for the replies guys,

DarkSoul,

<a href="../some/file.html" target="MainBody">Tech</a>

is great for single page linking, but rather ineffective for dual frame linking..:)

ShrinDesigns,

not sure I understand the implementation here

onClick="window.winName.location='URL'"

could you send me an email with explanation pls

I'm assuming these are referring to frame names in javascript..but obviously not sure...

thanks in advance,