This scipt is working in IE6 but not in Netscape 7. What am I doin wrong?
<script language="JavaS cript" type="text/JavaScript">
var ns = false;
var ie = false;
ie = (document.all) ? true : false;
ns = (document.layer s) ? true : false
function hideLayer(layer Name) {
if (ie){
document.all(la yerName).style. visibility="hid den";
document.all(la yerName).style. width="16";
document.all(la yerName).style. height="16";
} else if (ns) {
document.layers[layerName].visibility = "hide";
document.layers[layerName].width="16";
document.layers[layerName].height="16";
}
}
function showLayer(layer Name) {
if (ie){
document.all(la yerName).style. visibility="vis ible";
document.all(la yerName).style. width="140";
document.all(la yerName).style. height="400";
} else if (ns) {
document.layers[layerName].visibility = "show";
document.layers[layerName].width="140";
document.layers[layerName].height="400";
}
}
</script>
--
_______________ ____________
Best Regards,
Ingmund Sjåstad
in*****@stadmek .no