PDA

View Full Version : hiding layers


Calcium
03-13-2003, 09:23 PM
Please, I need some help!
I want to check on mouseklick for visible layers in a document, and if there are some, hide them.
My synapses are blocked, and I would appreciate your advice.
Thanks, C

Tommi
03-13-2003, 09:28 PM
for the determine and hiding part:

If (document.getElementById('div_id').style.visibility == 'visible') document.getElementById('div_id').style.visibility = 'hidden';


the more difficult thing would be looking for <div> layers.

document.getElementsByTagName("div")[count]

passes you number "count" div tag from the beginning of the document.
Haven't tried that, yet, so I'm not sure. Maybe it helps :confused: