Click to See Complete Forum and Search --> : LAYERs in Netscape 7.0


FrancescoJS
03-07-2003, 07:00 AM
Hi all again,
Who knows how is it possible to use the LAYERs in Netscape revision 7.0 using the Javascript language (i.e. How can I show or hide the LAYERs)?!

Thanks a lot
//Francesco

gil davis
03-07-2003, 07:14 AM
NS 7 does not support the <LAYER> tag. It supports DOM methods. A DOM layer is any HTML tag that is declared as being positioned - either "position: relative" or "position: absolute". If you have an object declared:

<div id="d1" style="visibility: hidden">

you can make it visible by using the following javascript:

document.getElementById("d1").style.visibility = "visible";