Hi all,
I have a navbar I created using divs in the body and js functions that are called on the onmouseout in the divs. The navebar has a menu appearance with top level items that stay visible. When the mouse goes over a top level item (onMouseover) that item's sub menu opens underneath - with a routine that makes it visible. When the mouse goes off the submenu the onMouseoff runs a routine that makes all submenus not visible. This is in a routine called nosubs() that is called from each div that contains a submenu (there are about 6 menu item with associated submenus).
The nosubs() routine sets the visibility of each submenu to be not visible. Yet the submenu the mouse just went off of stays open. My guess is that a div that contains a submenu, cannot make itself invisible since it is the one that called the routine.
Here is the nosubs() routine:
function nosubs(){
changeState("filesubmenu", "hidden");
changeState("itemsubmenu", "hidden");
changeState("pagesubmenu", "hidden");
changeState("promosubmenu", "hidden");
changeState("tablesubmenu", "hidden");
changeState("reportingsubmenu", "hidden");
changeState("imagesubmenu", "hidden");
changeState("helpsubmenu", "hidden");
}
The changeState routine is a toggle type of function that applies the attribute ("hidden") to the item(for example "filesubmenu")
Here is the div for filesubmenu:
<div name="filesubmenu" id="filesubmenu" onMouseout="nosubs()">
<a href="<hr size="1">
<a href="<hr size="1">
<a href="</div>
Any guesses why filesubmenu will not go invisible. It is in the nosubs() routine to change to hidden, but it stays after the mouse moves away. I think it can't change "itself".
Any comments/ideas?
Thanks,
KB
I have a navbar I created using divs in the body and js functions that are called on the onmouseout in the divs. The navebar has a menu appearance with top level items that stay visible. When the mouse goes over a top level item (onMouseover) that item's sub menu opens underneath - with a routine that makes it visible. When the mouse goes off the submenu the onMouseoff runs a routine that makes all submenus not visible. This is in a routine called nosubs() that is called from each div that contains a submenu (there are about 6 menu item with associated submenus).
The nosubs() routine sets the visibility of each submenu to be not visible. Yet the submenu the mouse just went off of stays open. My guess is that a div that contains a submenu, cannot make itself invisible since it is the one that called the routine.
Here is the nosubs() routine:
function nosubs(){
changeState("filesubmenu", "hidden");
changeState("itemsubmenu", "hidden");
changeState("pagesubmenu", "hidden");
changeState("promosubmenu", "hidden");
changeState("tablesubmenu", "hidden");
changeState("reportingsubmenu", "hidden");
changeState("imagesubmenu", "hidden");
changeState("helpsubmenu", "hidden");
}
The changeState routine is a toggle type of function that applies the attribute ("hidden") to the item(for example "filesubmenu")
Here is the div for filesubmenu:
<div name="filesubmenu" id="filesubmenu" onMouseout="nosubs()">
<a href="<hr size="1">
<a href="<hr size="1">
<a href="</div>
Any guesses why filesubmenu will not go invisible. It is in the nosubs() routine to change to hidden, but it stays after the mouse moves away. I think it can't change "itself".
Any comments/ideas?
Thanks,
KB