I am using the following script to hide/unhide a layer in a site that I am building:
It works perfectly in IE6, IE7, and Opera (though in Opera the opacity isn't working but that is fine) But when I click on the button using Firefox the layer does not become visible. Can anyone help me out, this is on a short deadline...Code:function hidediv() { if (document.getElementById) { // DOM3 = IE5, NS6 document.getElementById('form1POP').style.visibility = 'hidden'; } else { if (document.layers) { // Netscape 4 document.hideShow.visibility = 'hidden'; } else { // IE 4 document.all.hideShow.style.visibility = 'hidden'; } } } function showdiv() { if (document.getElementById) { // DOM3 = IE5, NS6 document.getElementById('form1POP').style.visibility = 'visible'; } else { if (document.layers) { // Netscape 4 document.hideShow.visibility = 'visible'; } else { // IE 4 document.all.hideShow.style.visibility = 'visible'; } } }
Many thanks
JF



Reply With Quote

Bookmarks