PDA

View Full Version : Floating Menu



realproject
09-13-2006, 01:34 PM
hi friends,

i was keep on trying to float a menu with number of submenus but couldn't able to achieve my target.

when ever the mouseover comes to submenu its getting disappeared(thi\s is my problem)

can any help me to floatmenu with submenu's using javascript

jscheuer1
09-13-2006, 04:41 PM
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:


function showsub(subobj){
subobj=subobj;
if(hiding)
clearTimeout(hiding);
subobj.style.display='block';
}

trigger and sub onmouseout:


function hidesub(){
hiding=setTimeout("subobj.style.display='none'", 60);
}