Click to See Complete Forum and Search --> : Simple Layer visibility


moondance
07-17-2003, 10:46 AM
i have layer on my web page, with a small amount of content in. There are 20 layers in total.

I have 20 small pictures. When i click a picture, i simply want a layer to appear.

does anyone know the code for this? i'm assuming it would be something like this:

<a href='#'><img src = 'image1.jpg' onClick ='document.layers('layerX').visibility = 'visible'></a>

or if anyone has the project seven autolayers plugin and knows how to do it using that, help is appreciated ;)

pyro
07-17-2003, 10:49 AM
Try document.getElementById("yourlayerid").style.visibility = "visible";

Note that you will have to give you layers ID's so you are able to reference them...

moondance
07-18-2003, 02:41 AM
cheers pyro

:D