Forum Moderators: open

Message Too Old, No Replies

forcing frames (yes again)

I can't seem to get it to work

         

eeyore

10:30 pm on Jul 5, 2002 (gmt 0)



Okay, I've tried various different scripts for forcing frames, but none seem to work. I'm an amature working on a site for the company I work for, I'm self taught, but i'm not very good with coding.

I have 3 frames a top (top.html) side (contents.html) and mainframe all inside the home.html file. Obvioulsy I want the top and side to load with whatever mainframe is loaded, the problem I have is when I run the script the top and side load, but the first page always loads, not the orphan page I want to load.

Any idea's??

tedster

11:37 pm on Jul 5, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Check out message 21 [webmasterworld.com] on our generic javascript thread. The only change you should need is in the document.write line. That's because this script was written for framing two pages, not three.

document.write('<frameset rows="20%,80%"><frame src="top.html" name="top"><frameset cols="20%,80%><frame src="left.html" name="left"><frame src="' + contentURL + '" name="content"><\/frameset>')

I'm assuming that the source for "top" and "left" doesn't change in your case. If it does, things get more complex.

eeyore

12:02 am on Jul 6, 2002 (gmt 0)



Thanks for that, I'll have a look. Yeah, the top and left stay the same.

tedster

9:17 pm on Jul 6, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Whoops!

I forgot to close the second frameset. Would you believe I dreamed about that mistake last night? I have officially become a card-carrying geek!

document.write('<frameset rows="20%,80%"><frame src="top.html" name="top"><frameset cols="20%,80%><frame src="left.html" name="left"><frame src="' + contentURL + '" name="content"><\/frameset><\/frameset>')