469,915 Members | 2,457 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,915 developers. It's quick & easy.

Target Frame - Java script

i have a frames based website, my java menu is in frame "contents" but i
want it to load the page in to frame "main", here is the code i have so far:

function init()
{
menus[0] = new menu(130, "vertical", 10, 10, -2, -2, "#CACAFF", "#0000A0",
"Verdana,Helvetica", 9,
"bold", "bold", "black", "white", 1, "gray", 2,
"rollover:tri.gif:tri.gif", false, true, true, true, 12, true, 4,

4, "black");
menus[0].addItem("frame.htm", 22, "left", "Home", 0 );
menus[0].addItem("#", 22, "left", "Car Parts", 1);
menus[0].addItem("FeedBack/feedback.htm", 22, "left", "Feed Back", 0 );
menus[0].addItem("Contact/contact.htm", 22, "left", "Contact Me", 0);

//Sub Menu for 2nd Main Menu Item ("Car Parts"):
menus[1] = new menu(130, "vertical", 0, 0, -5, -5, "#CACAFF", "#0000A0",
"Verdana,Helvetica", 9, "bold",
"bold", "black", "white", 1, "gray", 2, 62, false, true, false, true, 6,
true, 4, 4, "black");
menus[1].addItem("http://www.google.com", 22, "Left", "Air Bags", 0);
menus[1].addItem("http://www.javascriptkit.com", 22, "left", "Brakes", 0);
menus[1].addItem("http://www.codingforums.com", 22, "left", "Diesel
engines", 0);
menus[1].addItem("http://www.builder.com", 35, "left", "Manual
Transmission", 0);
menus[1].addItem("http://www.builder.com", 22, "left", "Petrol Engines",
0);
menus[1].addItem("http://www.builder.com", 22, "left", "Seat Belts", 0);
menus[1].addItem("http://www.builder.com", 22, "left", "Steering", 0);

} //OUTER CLOSING BRACKET. EVERYTHING ADDED MUST BE ABOVE THIS LINE.

any ideas what to do
Jul 23 '05 #1
3 3951
In article <Z5***************@newsfe5-gui.server.ntli.net>,
to***************@ntlworld.com enlightened us with...
i have a frames based website, my java menu is in frame "contents" but i
want it to load the page in to frame "main", here is the code i have so far:


If the only code in the contents frame is the menu, just use a base tag.

<base href="main">

--
--
~kaeli~
Bakers trade bread recipes on a knead-to-know basis.
http://www.ipwebdesign.net/wildAtHeart
http://www.ipwebdesign.net/kaelisSpace

Jul 23 '05 #2
On Fri, 16 Apr 2004 09:15:04 -0500, kaeli <ti******@NOSPAM.comcast.net>
wrote:
In article <Z5***************@newsfe5-gui.server.ntli.net>,
to***************@ntlworld.com enlightened us with...
i have a frames based website, my java menu is in frame "contents" but i
want it to load the page in to frame "main", here is the code i have so
far:


If the only code in the contents frame is the menu, just use a base tag.

<base href="main">


I think you mean

<base href="" target="main">

The href attribute is required, but has no effect above.

Mike

--
Michael Winter
M.******@blueyonder.co.invalid (replace ".invalid" with ".uk" to reply)
Jul 23 '05 #3
In article <op**************@news-text.blueyonder.co.uk>,
M.******@blueyonder.co.invalid enlightened us with...

I think you mean

<base href="" target="main">

The href attribute is required, but has no effect above.


You're right; I meant <base target="main">

Sorry.
--
--
~kaeli~
Who is General Failure and why is he reading my hard disk?
http://www.ipwebdesign.net/wildAtHeart
http://www.ipwebdesign.net/kaelisSpace

Jul 23 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Kai Grossjohann | last post: by
2 posts views Thread by RWD | last post: by
4 posts views Thread by DaveO | last post: by
2 posts views Thread by PieOPah | last post: by
Dököll
4 posts views Thread by Dököll | last post: by
reply views Thread by Salome Sato | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.