Click to See Complete Forum and Search --> : hide layer from <a href>


andrew1234
07-23-2003, 09:16 AM
i'm trying to make this layer hide from the link


Any ideas thanks

andrew
------------------------------------------------------------------
<body>


<a href="#" onclick="layer1.style="visibility: hidden";>home</a>


<div id='layer1' style='position:absolute; left:256px; top:90px; width:79px; height:43px; z-index:1; background-color: #990000; layer-background-color: #990000; border: 1px none #000000; visibility: visible;'></div>
;
</body>

requestcode
07-23-2003, 10:08 AM
onClick="document.getElementById('layer1').visibility='hidden'"

andrew1234
07-23-2003, 10:23 AM
Hi Thanks for the reply

but for some reason it still does not work
any more ideas


<a href="#" onClick="document.getElementById('fred').visibility='hidden'">home</a>


<div id='fred' style='position:absolute; left:439px; top:90px; width:79px; height:43px; z-index:7; background-color: #990000; layer-background-color: #990000; border: 1px none #000000; visibility: visible;'></div>

thanks

Andrew