I wrote this code and I can't get it disappear on mouseout..
<script language="javascript" type="text/javascript">
var activeLayer = "0";
function highlight(theLayer)
{
highlighter = document.all? document.all[theLayer] : document.getElementById? document.getElementById(theLayer) : ""
}
function lowlight(theLayer)
{
lowlighter = document.all? document.all[theLayer] : document.getElementById? document.getElementById(theLayer) : ""
}
function JumpToNav(navIndex)
{
newNav = "NavMenu"+navIndex;
newCon = "NavContent"+navIndex;
oldNav = "NavMenu"+activeLayer;
oldCon = "NavContent"+activeLayer;
newNavLayer = document.all? document.all[newNav] : document.getElementById? document.getElementById(newNav) : ""
newConLayer = document.all? document.all[newCon] : document.getElementById? document.getElementById(newCon) : ""
oldNavLayer = document.all? document.all[oldNav] : document.getElementById? document.getElementById(oldNav) : ""
oldConLayer = document.all? document.all[oldCon] : document.getElementById? document.getElementById(oldCon) : ""
oldConLayer.style.display="none";
newConLayer.style.display="inline";
activeLayer = navIndex;
}
function buildObject(obj){
document.write(obj)
}
</script>
You apply the show hide like this:
<ul>
<li id="NavMenu0" onmouseover="JumpToNav(0);"><a href="#nogo">1 - blah blah blah blah blah </a></li>
<li id="NavMenu1" onmouseover="JumpToNav(1);"><a href="#nogo">2 - blah blah blah blah blah </a></li>
</ul>
The problem is when you mouseout any of the links the menu stays visible...
Can somebody help please?
Ted