|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Why is this browser detector for css layers not working on netscape?
It would be wonderful to have another person look at this because I am at the end of the line. The <div> layer still would not show up on Netscape.
Thanks. <head> <script language=javascript> <!-- var NN4 = document.layers? true : false; var IE4 = document.all? true : false; var left; var top; function display(layerName) { if (IE4) { document.all[layerName].style.visibility = "visible"; } else if(NN4) { document.layers[layerName].visibility = "show"; } } function hide() { if (IE4) { document.all['layer1'].style.visibility = "hidden"; } else if(NN4) { document.layers['layer1'].visibility = "hidden"; } } //--></script> <body> <div id="layer1" style="left:100px; position:absolute; top:155px; visibility:hidden; z-index:0"> <script language="javascript"> <!-- if (NN4 || IE4) { document.write("this is the layer 1") } //--></script> </div> <a href="javascript:void()" onClick='hide(); display("layer1")'>Button</a> </body> |
![]() |
| Viewing: Dev Shed Forums > Web Design > CSS Help > Why is this browser detector for css layers not working on netscape? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|