[thelist] js hide layer function

Rudy_Limeback at maritimelife.ca Rudy_Limeback at maritimelife.ca
Tue Oct 3 13:51:02 CDT 2000


>     document.layers[i].style.visibility='hide';
>
>   I'm getting a 'document.all.layers.length is not an object' 
> error in Mac IE5, (same if I remove the 'all') 
> though I know it works in other scripts.


hi bob

don't you have to say 'hidden' instead of 'hide' for IE?


       if (document.layers) { (isNS=true) }

       var HIDDEN = (isNS) ? 'hide' : 'hidden';
       var VISIBLE = (isNS) ? 'show' : 'visible';


rudy
r937.com





More information about the thelist mailing list