...

View Full Version : Not working in netscape



details
12-17-2002, 09:00 PM
How can I modify this script below to work with Netscape

<head>
<script language="javascript">
<!--
var Open = ""
var Closed = ""



function showhide(what,what2){
if (what.style.display=='none'){
what.style.display='';

}
else{
what.style.display='none'

}
}
-->
</script>
</head>

<body>
<span id="menu1" onClick="showhide(menu1outline)" style="cursor:hand; font-Family:Arial; font-weight:bold">
Menu
</span><BR>

<span id="menu1outline" style="display:'none'">
<A HREF="2.asp">SubMenu</A>
</span>
</body>

Skyzyx
12-17-2002, 09:38 PM
This works in Mozilla, so it should work in any Gecko browser (including Netscape 6+) and Internet Explorer 5+



<html>
<head>
<script language="javascript">
<!--
var Open = ""
var Closed = ""

function showhide(what)
{
what2=document.getElementById(what);

if (what2.style.display=='none')
{
what2.style.display='';
}
else
{
what2.style.display='none';
}
}
//-->
</script>
</head>

<body>
<span id="menu1" onClick="showhide('menu1outline');" style="cursor:hand; font-Family:Arial; font-weight:bold">
Menu
</span><BR>

<span id="menu1outline" style="display:none;">
<A HREF="2.asp">SubMenu</A>
</span>
</body>
</html>

details
12-17-2002, 09:52 PM
I still cannot get it to work in 4.7.

Oh well!!

Skyzyx
12-17-2002, 11:53 PM
Netscape 4.7 can't handle the CSS involved to make it work. That's why. That particular script will work in a 5.0 or newer browser.

whammy
12-18-2002, 03:00 AM
I agree... I might check for netscape 4.x and redirect them to netscape's main download page, or another page that suggests the user download a modern browser to get the best experience. There are plenty of threads on this forum relating to that.

The time has come to quit supporting antiquated browsers... IMO.

details
12-18-2002, 03:41 PM
I agree!! Thanks for the help guys!



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum