//flex table opened by JP

Click to See Complete Forum and Search --> : little java script problem


Tony2005
04-12-2004, 05:39 AM
for a web assignment i have to use some java script so i decided to use a menu. i can get the script to loads up the pages fine but i dont know how to loads them in a different frame

below is the code:

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.

Also the contents page (which containts the menu) has this:

<Script script type="text/javascript" src="includes/browser.js">
</script>
<script type="text/javascript" src="config2.js"></script>
<link rel="stylesheet" type="text/css" href="InformationStlye.css">
</head>

<body onload="init()" bgcolor="#6699FF">

Any idea what i need to do

DocEvi1
04-12-2004, 07:16 AM
I would bet you change the "left" to the new frame name, however without the on-click function listed I can only guess.

Tony2005
04-14-2004, 07:52 AM
tried that all it does is change the alignment

DocEvi1
04-14-2004, 12:30 PM
Originally posted by DocEvi1
I would bet you change the "left" to the new frame name, however without the on-click function listed I can only guess.

Tony2005
04-16-2004, 10:35 AM
i see, so any ideas any one? im really stuck on this one