View Single Post
  #1 (permalink)  
Old June 4th, 2003, 04:44 AM
chrisk chrisk is offline
Registered User
 
Join Date: Jun 2003
Location: , , .
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default Using div for menu in Netscape 6

I am using the following function to hide a menu which works fine in
everything except NN 6 - the function hides the div on rolling out of the
text in the layer not the whole div itself. I used some code (borrowed from your book) to get around the problem in IE but cannot find equivilent code
for NN 6. Can anyone help? Regards. Incidentally I am using a NN 4 style
layer nested within a div to provide a MouseOut event for NN 4 could this
have any effect?

function hideMenu()
{
if (document.all)
 {
 if (event.toElement != HomeMenu && HomeMenu.contains(event.toElement) ==
false)
  {
   document.all.HomeMenu.style.visibility="hidden";
  }
 }
else if (document.layers)
 {
 document.HomeMenu.visibility="hidden";
 }
else if (!document.all && document.getElementById)
 {
     document.getElementById("HomeMenu").style.visibili ty="hidden";
    }

}
Reply With Quote