API Questions on Kentico API.
Version 6.x > API > cms menu delay + skmmenu.js View modes: 
User avatar
Member
Member
mehrdadilchizadeh-yahoo - 9/5/2012 11:52:11 AM
   
cms menu delay + skmmenu.js
i am change code
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);

}
}
to
skm_ticker=setTimeout("skm_doTick('"+menuID+"');", 3000);
but not work i need help

User avatar
Kentico Support
Kentico Support
kentico_janh - 9/5/2012 5:02:46 PM
   
RE:cms menu delay + skmmenu.js
Hello,

As I wrote you in e-mail, I have tested it and when you increase this value then it will increase the delay after you point your mouse cursor out of the sub menu item.

Best regards,
Jan Hermann

User avatar
Member
Member
mehrdadilchizadeh-yahoo - 9/5/2012 11:51:30 PM
   
RE:cms menu delay + skmmenu.js
HI
tnk

but in my site sub menu very fast open... i want do delay to open sub menu...
but this cod in my site not working

plz help me

User avatar
Kentico Consulting
Kentico Consulting
kentico_borisp - 9/10/2012 1:23:40 AM
   
RE:cms menu delay + skmmenu.js
Hello,

For future readers, we solved this issue over the email. To delay the opening of a sub menu item when hovering over a node with some child nodes you need to follow this approach:

In that case you will have to change the following method in the file CMSScripts/skmmenu.js:

skm_mousedOverMenu

to something like this:

//Region MouseEventHandlers
function skm_mousedOverMenu(menuID,elem,parent,displayedVertically,imageSource, leftImage, rightImage, overStyle, browser, uniqueId, rtl){
skm_stopTick();
skm_closeSubMenus(elem);

setTimeout(function() {custom_skm_delayed_mousedOverMenu(menuID,elem,parent,displayedVertically,imageSource, leftImage, rightImage, overStyle, browser, uniqueId, rtl);},500);

}

and you need to create a custom_skm_delayed_mousedOverMenu(menuID,elem,parent,displayedVertically,imageSource, leftImage, rightImage, overStyle, browser, uniqueId, rtl) function, which will contain the content of the skm_mousedOverMenu function.

Best regards,
Boris Pocatko