View Full Version : Show/Hide Layers
I have asked this before but didn´t gat any answer so I´ll try again:<BR><BR>How do you show and hide layers (div-layers) with J-script?<BR><BR>An simple example would be nice.<BR><BR>ThanX
MikeD
01-27-2000, 08:27 AM
There are two style properties that are important - DISPLAY and VISIBILITY. If you are using absolute positioning in CSS you don't need to use the DISPLAY property.<BR><BR>Anyway, to hide them just set their values in script to :<BR><BR>divHide.style.display = "none";<BR>divHide.style.visibility = "hidden" ;<BR><BR>To unhide them use:<BR>divHide.style.display = "";<BR>divHide.style.visibility = "visible";<BR><BR><BR><div id="divHide" style="display:none;visibility:hidden">Hide Me</div>
vBulletin® v3.7.3, Copyright ©2000-2010, Jelsoft Enterprises Ltd.