Milonic provide full featured pull down web menus for some of the worlds largest companies
click here to see what it can do for you

Download Milonic DHTML Menu
Buy Milonic DHTML Menu

Back To Start Of Archive
Taken From The Forum: Help & Support for DHTML Menu Version 5+
Forum Topic: Click to view post
Last Updated: Saturday July 14 2012 - 06:07:48

opendelay: what param do you set to delay single menu solved


Poster: nwilcox
Dated: Friday November 17 2006 - 22:16:14 GMT

hey all...

what parameter do I need to set and where so my menu subs will open with a delay.

Is it opendelay? If so where do I place it in the menu_data file and what unit of measure is the delay expecting?

Thank you!


Poster: Ruth
Dated: Sunday November 19 2006 - 18:42:57 GMT

Hi,

That is a global property, but it is also a menu property so you could apply it in a menu. You'd put it up where you have the style=menuStyle; top= etc. part of the menu coding.

Ruth


Poster: nwilcox
Dated: Monday November 20 2006 - 0:22:54 GMT

what is the unit of measure?

seconds or milliseconds?


Poster: Ruth
Dated: Monday November 20 2006 - 1:54:36 GMT

Hi,

lol, that threw me for a loop. But, it has to be milliseconds, though I couldn't find the info on it. If it were seconds, the menu as downloaded would be real slow at closing and opening since the delay is already coded as 500 and 150.

Ruth


Poster: nwilcox
Dated: Monday November 20 2006 - 14:18:40 GMT

some extra documentation on that property would be great for future reference.

I'll try it in milliseconds


Poster: John
Dated: Monday November 20 2006 - 14:35:32 GMT

Maybe this is just a bad Monday, but do you really think we'd code a default into the downloads of 150 seconds for an open delay?


Poster: nwilcox
Dated: Monday November 20 2006 - 14:44:24 GMT

I don't know who you are referring to with that comment, but being a paying customer, I hope it wasn't me :?


Poster: nwilcox
Dated: Monday November 20 2006 - 17:33:56 GMT

UPDATE:

I updated the menu parameter as instructed and it didn't do anything. Any ideas?

http://beta.acoem.org/

the top level menu along the top now has an excessively long opendelay but nothing changed:

with(milonic=new menuname("MainNavigation")){
style=menuStyle;
alwaysvisible=1;
orientation="horizontal";
position="relative";
itemwidth="181px";
menuheight="33px";
menuwidth="842px";
opendelay=50000000000;
aI(...);
}


Poster: vikenk
Dated: Monday November 20 2006 - 17:58:44 GMT

Hi,

If I remember correctly, the OpenDelay parameter is only for vertical menus! So, if you have a horizontal menu, your sub menus will not be affected by the delay.

Set the OpenDelay parameter in your Global menu properties and you will see the effects in the SECOND level menus (in your particular example). Basically, this parameter prevents the vertical sub-sub menus from opening too quickly as you hover down the menu options.

So if you put the open delay in the global properties, the submenu for "Continuing Education" will not be affected, but the submenu of "Conferences", WILL be affected.

I hope this clears some things up.


Poster: nwilcox
Dated: Monday November 20 2006 - 18:17:44 GMT

so there is no way to adjust the menus individually for horizontal layout menus?


Poster: vikenk
Dated: Monday November 20 2006 - 18:20:38 GMT

Hi,

I'm not 100% certain, but I don't think there's a way to adjust the horizontal menu delay time. Like you, I'm just a user of the menu. I don't know the coding behind it and am not part of the Milonic team.

I hope I was of some assistance.

Viken K.


Poster: Ruth
Dated: Monday November 20 2006 - 18:21:03 GMT

Hi,

Vikenk is correct, the opendelay is a property of vertical menus. Since there were many requests for being able to open submenus from a horizontal menu with a delay, Milonic created a property for such isntances, horizontalMenuDelay. There is information here about it.

http://www.milonic.com/global_properties

I do not know if this can be applied in only one menu.

Ruth


Poster: nwilcox
Dated: Monday November 20 2006 - 18:23:46 GMT

excellent... that is helpful. I'll try this!

thanks to everyone how made an effort to assist me!


Poster: Ruth
Dated: Monday November 20 2006 - 18:34:34 GMT

Hiya again,

That property is a true or false, I believe it takes its delay from the opendelay property. So, I'd suggest as a trial, you put in the opendelay property in the individual menu along with that horizontalMenuDelay set to true at the top. I'll play with it when I get a chance and see if that works, in the meantime I figured I'd post to you about trying that.

Ruth


Poster: nwilcox
Dated: Monday November 20 2006 - 18:42:06 GMT

Ruth wrote:
Hiya again,

That property is a true or false, I believe it takes its delay from the opendelay property. So, I'd suggest as a trial, you put in the opendelay property in the individual menu along with that horizontalMenuDelay set to true at the top. I'll play with it when I get a chance and see if that works, in the meantime I figured I'd post to you about trying that.

Ruth


does horizontialMenuDelay need an underscore in front of it like the other parameters?

should it be:

_horizontalMenuDelay = true;

or

horizontalMenuDelay = true;


Poster: Ruth
Dated: Monday November 20 2006 - 19:11:16 GMT

Hi,

I can only go by what is posted on the Global Properties page which show it as the last one you posted

Valid syntax is horizontalMenuDelay=true;


Ruth


Poster: nwilcox
Dated: Monday November 20 2006 - 19:17:07 GMT

it worked great without the underscore... thanks!

problem solved, case closed!