PDA

View Full Version : change layer from button link


andrew1234
07-25-2003, 01:06 PM
Hi

I'm trying to hide a layer when the mouse clicks a button
and for some reason this does not work.

Any 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

arnyinc
07-25-2003, 01:12 PM
<a href="#" onClick="document.getElementById('fred').style.visibility='hidden'">home</a>