Forum Moderators: open
<script type="text/javascript">
<!--
//credits to Travis from podlob.com
textMenu = {timer : null, current : null};
textMenu.getStyle = function(name){
if(document.getElementById) return document.getElementById(name).style;
else if(document.all) return document.all[name].style;
}
textMenu.show = function(name){
if(this.timer) clearTimeout(this.timer);
this.getStyle(name).visibility = "visible";
this.current = name;
}
textMenu.hide = function(){
this.timer = setTimeout("textMenu.doHide()",1000);
}
textMenu.doHide = function(){
if(this.current){
this.getStyle(this.current).visibility = "hidden";
this.current = null;
}
}
//-->
</script>
<!--
//credits to Travis from podlob.com
textMenu = {timer : null, current : null};
textMenu.getStyle = function(name){
if(document.getElementById) return document.getElementById(name).style;
else if(document.all) return document.all[name].style;
}
textMenu.show = function(name){
if(this.timer) clearTimeout(this.timer);
this.getStyle(name).visibility = "visible";
this.current = name;
}
textMenu.hide = function(){
this.timer = setTimeout("textMenu.doHide()",1000);
}
textMenu.doHide = function(){
if(this.current){
this.getStyle(this.current).visibility = "hidden";
this.current = null;
}
}
//-->
</script>
So this script will do the job I mean show/hide layers