Netscape is very picky when it comes to html.
Here is the function
var layerRef="null",styleSwitch="null";
function init(){
if (navigator.appName == "Netscape") {
if(document.getElementById) {
layerRef="document.getElementById('";
styleSwitch="').style";
}
else if(document.layers) {
layerRef="document.layers['";
styleSwitch="']";
}
}
else{
layerRef="document.all('";
styleSwitch="').style";
}
}
function showLayer(layerName){ eval(layerRef+layerName
+styleSwitch+'.visibility="visible"');
}
function hideLayer(layerName){
eval(layerRef+layerName+styleSwitch+'.visibility="hidden"');
}
call the function in the body onload event. To hide unhide divs plays this
in for example a mouse event
hideLayer('divName')
showLayer('divName')
Works in Netscape 4, 6 and in IE
Regards,
Gerhard Wentink
----- Original Message -----
From: "Brian Mains" <bgmst5@y...>
To: "javascript" <javascript@p...>
Sent: Friday, June 15, 2001 4:59 PM
Subject: [javascript] Re: Netscape
> Yeah, i meant to put that div tag within the body. Also, I got rid of a
> good bit of javascript functionality, but I think the reason it didn't
> understand the form was because it wasn't submitted (which still doesn't
> make sense to me, but that is what it seems). Anyway, I would like to see
> that function.
>
> Thanks for your help,
>
> Brian Mains
>
>