first of all, ie and ns are html 4 compliant, divs are part of html 4 (i think they go back farther than that though).
Second, post your code so we can show you how to cross-browser script.
Third,
Code:
var browserName=navigator.userAgent;
var browserVersion=parseInt(navigator.appVersion);
function whatBrowser()
{
if (browserName=="Internet Explorer") //it may be MSIE, can't remember
{
window.location.url="iepage.htm";
}
else
{
window.location.url="nspage.htm";
}
}
<body onload="whatBrowser()">
C G C F A D--Feel the Noise
"When your life goes nowhere and leads back to me, doesn't that tell you something?"
~Gray Area Fury
if (document.all) {
// IE4, IE5, IE6 specific code
} else if (document.layers) {
// NN4 specific code
} else if (document.getElementById) {
// NN6 specific code
}
Because both IE6 & NN6 support document.getElementById, you have to be sure to first check for document.all. Otherwise if you check for document.getElementById first, then IE6 will try to do your NN6 specific code.
I haven't experimented much yet with NN7, but I assume the DOM is compatible with NN6.
first of all, in your onmouse whatever statements where you change background colors, the netscape extension to css uses the background-color as opposed to backgroundColor, so, include the change for background-color as well in that event.
Second, use if statements in the .js file
Code:
if (document.all)
{
...
}
else
if (document.layers)
{
mnuObj = document.layers[popmenu];
...
}
else
if (document.GetElementById)
{
mnuObj=document.GetElementById(popmenu);
...
}
i think that about covers it
C G C F A D--Feel the Noise
"When your life goes nowhere and leads back to me, doesn't that tell you something?"
~Gray Area Fury
* The Best Reasons to Target Windows 8
Learn some of the best reasons why you should seriously consider bringing your Android mobile development expertise to bear on the Windows 8 platform.