Javascript on Netscape

They have: 3 posts

Joined: Apr 2000

I'm helping to design a web site that uses a javascript drop down boxes in the menu. My problem is that it only works on IE and not on Netscape. I'm not a big Netscape user, so I don't know the differences when it comes to Javascripts. I need some help figuring out a way to fix it. I can e-mail the source code if anyone would like to help me figure out the problem.

John Pollock's picture

He has: 628 posts

Joined: Mar 1999

Do you have a url we could look at? NS is a little more picky that IE, so sometimes shortened codes will run in IE but not NS..

They have: 3 posts

Joined: Apr 2000

Yes the site is bosted on a test domain. The site is www.thesportmen.com/history.htm.
Remember, this was just our test site. The latest changes haven't been posted yet. I think since then we've fixed it so that it will roll back up after mouseover.

They have: 3 posts

Joined: Apr 2000

They have: 231 posts

Joined: Feb 2000

If you can ask more specific questions I can help you. This is a DHTML issue - not javascript alone.

Vincent Puglia's picture

They have: 634 posts

Joined: Dec 1999

Hi tracsim,

As Lloyd said, it is a dHTML (or DOM) issue. For example, "all" and "style" are IE-specific keywords; Netscape uses "layer".
To make it work in NN, you would first have to check for the type of browser being used. Then you need to ID DIVs for each of the layers/menus.
Sites to visit: www.irt.org, www.brainjar.com, www.dynamicdrive.com.
If you would like to see an introductory script with complete explanation on crossBrowser dHTML, see "dHTML: an Introduction" at my site.

Vinny

------------------
GrassBlade: cut&paste javascript

Where the world once stood
the blades of grass cut me still

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.