Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

my script works on IE but not netscape 7.0

Status
Not open for further replies.

fleart1

Technical User
Jun 6, 2004
24
US
HI,
I got this really great fading menu and installed it to my site. It workes fine in IE but when I open in Netscape 7.0 the menu is in the middle of the page on one page and something similar on an other page.
I went to netscapes Javascript consol and got this error it says i line 3, menus is not defined.

function init()
{
menus[0] = new menu(20, "horizontal", 55, 103, -1, -1, "87ceeb", "#0000A0", "Verdana,Helvetica", 9,
"bold", "bold", "black", "white", 1, "gray", 2, "rollover:images/tri-right1.gif:images/tri-right2.gif", false, true, true, true, 12, true, 4, 4, "black");
menus[0].addItem(" "", 70, "center", "Home", 1);

Can anybody help me find out how to get it working in both.
thanks
 
Start with
Code:
menus = new Array();

If that doesn't work, you will need to post the menu class.

--Chessbot

"See the TURTLE of enormous girth!"
-- Stephen King, The Dark Tower series
 
Some of the old hierarchical arrays use document.all and layers, and they check for either Netscape 4 or IE. Since Netscape 7 is neither, those menus don't function with that version.
 
I removed the code a couple times and it works??
thanks anyway
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top