473,382 Members | 1,425 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 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 4105
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() { window.showModalDialog("main.html", null,...
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 a new window called page2.asp. When the user...
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 "main" The code is below: Thanks in advance...
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 a menu system called menu.js It contains the...
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 clueless!!! Been asked to cobble together a site since...
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 inner frame should hit a page on the same (private)...
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 target tags to related to inner HTML pages. In...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.