Hide/Show Layer script
Head script
Tested on Internet Explorer 5.2 (Macintosh), FireFox 1.0 (Macintosh)
Thanks for the help from
adcott and
saint_sava
Crossposted to
javascript and
_css
<script>
function hideshowlayer(LayerName) {
var VState = document.getElementById(LayerName).style.d
document.title = LayerName +" "+document.getElementById(LayerName).sty
if (VState=="inline") {
document.getElementById(LayerName).style.d
}
if (VState=="none") {
document.getElementById(LayerName).style.d
}
} //end function
</script>
Body
<a href='javascript:hideshowlayer("layer1")
<span id="layer1" style="visibility: visible; display:inline; ">
<b>Showinglayer 1</b>
</span>
Tested on Internet Explorer 5.2 (Macintosh), FireFox 1.0 (Macintosh)
Thanks for the help from
Crossposted to
javascript and
_css