PDA

View Full Version : DD Levels Menu hide timer on sub menus



pninny2001
01-14-2009, 09:11 PM
1) Script Title:

DDLevelsMenu

2) Script URL (on DD):

http://www.dynamicdrive.com/dynamicindex1/ddlevelsmenu/index.htm

3) Describe problem:

I'd like to add an additional timer to the menu, so that a submenu will not hide for a predetermined time period.

Currently, I have my 'recommended editable values' set to:



enableshim: true,

arrowpointers:{
downarrow: ["ddlevelsfiles/arrow-down.gif", 11,7], //[path_to_down_arrow, arrowwidth, arrowheight]
rightarrow: ["ddlevelsfiles/images/arrow_ml.png", 7,12], //[path_to_right_arrow, arrowwidth, arrowheight]
showarrow: {toplevel: false, sublevel: true}
},
hideinterval: 750,
effects: {enableswipe: true, enablefade: false, duration: 250},
httpsiframesrc: "blank.html"


I'm using v2.1, and I haven't changed anything other than the values in the above code.

If I understand the script correctly, if the main ul is hovered in, then a timer is set to keep the main ul visible for the value in 'hideinterval'. I'd like to add another interval so that my sub menu is 'stickier', or behaves more like the main ul. Any ideas how I would go about doing that?

I only ever have two sub menus max, and I just want the first sub menu to have the additional timer.

Thanks!

ddadmin
01-15-2009, 12:04 AM
There is a thread on how to add a delay to the hiding of the sub menus here: http://www.dynamicdrive.com/forums/showthread.php?p=172590 However, the bug that surfaces as a result (see bottom of the thread) may still be around in v2.1 You can give it a try yourself and see if it does. This is something I'll have to find time to fix the next time the script is updated.