This is what i have found
<!-- Switch Content Script Start Here -->
<script language="JavaScript">
<!--
var active ='home';
function ShowLayer(id) {
if (document.all) { document.all[active].style.display = "none"; }
if(document.layers){ document.layers[active].visibility = "hide";}
if(document.getElementById) {document.getElementById(active).style.visibility= 'hidden';}
active = id;
if (document.all) { document.all[active].style.display = "block";}
if(document.layers) { document.layers[active].visibility = "show" ;}
if(document.getElementById) {document.getElementById(active).style.visibility= 'visible';}
}
//-->
</script>
<!-- Switch Content Script End Here -->
javascript
:ShowLayer('home')
but i changed the visibility:none to display:block as i wanted it to take up no space. ' if(document.layers){ document.layers[active].visibility = "hide";} ' what does it mean? do i need to change that as well?
Is this a good script? 1 page for the whole website!
Thanks
David Lawson
*newb*
