Portal Engine Questions on portal engine and web parts.
Version 5.x > Portal Engine > Reduce time on mouseout on "Drop-down menu" View modes: 
User avatar
Member
Member
itomford-gmail - 8/29/2011 11:50:34 AM
   
Reduce time on mouseout on "Drop-down menu"
We are using "Drop-down menu" web part. When the user takes the mouse away from a menu item, the menu remains on the screen for over one second.

Is there a way to adjust that so the menu disappears immediately when the user moves his mouse to another area?

Thanks!


User avatar
Member
Member
kentico_michal - 8/31/2011 3:18:18 AM
   
RE:Reduce time on mouseout on "Drop-down menu"
Hello,

You can change this value in the following method (~\CMSScripts\skmmenu.js):


//Region Fade Functions
function skm_doTick(menuID){
if (skm_clockValue>=skm_MenuFadeDelays[menuID]){
skm_stopTick();
skm_closeSubMenus(document.getElementById(menuID));
} else {
skm_clockValue++;
skm_ticker=setTimeout("skm_doTick('"+menuID+"');", 500);
}
}


As you can see, there is a value 500 milliseconds by default. So, you can change it according to your needs.

Please do not forget to clear browser cache and restart application [Site manager -> Administration -> System -> Restart application] after you change the value.

Best regards,
Michal Legen