472,352 Members | 1,444 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,352 software developers and data experts.

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 4033
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Kai Grossjohann | last post by:
The following HTML file invoker.html creates a modal dialog: <html><head> <script language="JavaScript"> function popup() {...
2
by: Matt | last post by:
In the following code, page1.asp is inside the frame of main.html. When the user click submit button in page1.asp, it will submit the form and open...
2
by: RWD | last post by:
I am trying to figure out how to change the target frame in my hyperlink on a DHTML menu. The menu is in one frame and the target frame is called...
4
by: DaveO | last post by:
Hi all I have done lots of VB programming, but am not familiar with JavaScript. Can anyone tell me how to do this ....? I have a JS file for...
2
by: PieOPah | last post by:
I have a webpage that uses frames (yes I know, frames - previously been flamed about that, but I do not know anything else to use since I am...
15
by: Phlip | last post by:
Javascripters: I have an outer page and an inner iframe. The outer page calculates some javascript, and wants the inner frame to run it. The...
4
Dököll
by: Dököll | last post by:
Hey Gang! I thought I had a good idea but then I realized JSF doesn't play that... I am trying to mimick what HTML can do in JSF when using...
1
by: Kemmylinns12 | last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and...
0
by: Naresh1 | last post by:
What is WebLogic Admin Training? WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge...
0
jalbright99669
by: jalbright99669 | last post by:
Am having a bit of a time with URL Rewrite. I need to incorporate http to https redirect with a reverse proxy. I have the URL Rewrite rules made...
0
by: antdb | last post by:
Ⅰ. Advantage of AntDB: hyper-convergence + streaming processing engine In the overall architecture, a new "hyper-convergence" concept was...
0
by: Matthew3360 | last post by:
Hi there. I have been struggling to find out how to use a variable as my location in my header redirect function. Here is my code. ...
0
by: AndyPSV | last post by:
HOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and on my computerHOW CAN I CREATE AN AI with an .executable...
0
by: Matthew3360 | last post by:
Hi, I have been trying to connect to a local host using php curl. But I am finding it hard to do this. I am doing the curl get request from my web...
0
by: Carina712 | last post by:
Setting background colors for Excel documents can help to improve the visual appeal of the document and make it easier to read and understand....
0
by: Rahul1995seven | last post by:
Introduction: In the realm of programming languages, Python has emerged as a powerhouse. With its simplicity, versatility, and robustness, Python...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.