-
Hiding element
Hi all !
Can any web gurus out there tell me the netscape equivalent of these IE javascript functions to hide & show an element please?
Code:
function ShowMenuDiv(divID)
{
document.all.divMenu1.style.display = "";
}
function HideMenuDiv(divID)
{
document.all.divMenu1.style.display = "none";
}
-
ns4 you mean?
try...
Code:
document.layers[layerid].visibility='hide';
document.layers[layerid].visibility='show';
With ns4 you cant turn the entire display off, only hide the element.
ns6 uses the w3c DOM.
Code:
document.getElementById(layerid).style.display='none';
document.getElementById(layerid).style.display='block';