Generally that problem is solved in menus by assigning the same onmouseover event to the sub as to the menu that opens it. Usually this needs to be combined with having the onmouseout event that makes the sub disappear be setTimeout delayed and having the mouseover event first clear that time out, general examples -
trigger & sub onmouseover:
Code:
function showsub(subobj){
subobj=subobj;
if(hiding)
clearTimeout(hiding);
subobj.style.display='block';
}
trigger and sub onmouseout:
Code:
function hidesub(){
hiding=setTimeout("subobj.style.display='none'", 60);
}
Bookmarks