Need explanation of _menuCloseDelay and _menuOpenDelay

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
sudheshnaiyer
Beginner
Beginner
Posts: 7
Joined: Tue Oct 07, 2008 8:54 pm

Need explanation of _menuCloseDelay and _menuOpenDelay

Post by sudheshnaiyer »

What will the following values do? I need to set the delay for opening the sub menus. I am trying to change the
values of _menuCloseDelay and _menuOpenDelay and I don't see any difference.

_menuCloseDelay=111; ^M
_menuOpenDelay=111; ^

overfilter="Fade(duration=0.2);Alpha(opacity=90)";
outfilter="randomdissolve(duration=1.3)";
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Re: Need explanation of _menuCloseDelay and _menuOpenDelay

Post by Ruth »

The menu open and close delay works on vertical menus not horizontal menus. If you are using a horizontal menu you need to use horizontalMenuDelay. You can find an explantion here

http://milonic.com/global_properties.php

Ruth
sudheshnaiyer
Beginner
Beginner
Posts: 7
Joined: Tue Oct 07, 2008 8:54 pm

Re: Need explanation of _menuCloseDelay and _menuOpenDelay

Post by sudheshnaiyer »

Thank you for the reply.

I have the following defined in menu_data.js. But they don't seem to be working.
_menuOpenDelay=190;
_menuOpenDelay=150;
hrizontalMenuDelay=true;
retainClickValue=1;

I need the submenus to open after certain delay. What I really need to do is to open submenus when the user pauses on
the menu item as opposed to simply sweeping across menus with their mouse. This is because I want to prevent misfires.

Is there any parameter that I can set to achieve the above.
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Re: Need explanation of _menuCloseDelay and _menuOpenDelay

Post by Ruth »

Hi,

Well, I don't know that 190, or 150 would be very noticeable. They are milliseconds I believe so those are only around 1/100th to 2/100ths of a second. You might try setting the open delay higher since you seem to want a submenu to not open if the person just quickly passes the mouse over an item.

I also forgot to answer about the over and out filter. I'm not sure what you want to know about that. It is a built in menu coding for the Microsoft Internet Explorer Filters and Transitions properties. That code only shows anything in IE since those are proprietary to Microsoft and do not do anything in any other browsers. There's an interactive demo if you want to experiment http://support.milonic.com/demos/

It's the first one. The numbers that appear in some of them are the, [again, I think it is milliseconds] time, or in the case of opacity percent of opacity that shows in the menu.

Hope this helps.

Ruth
sudheshnaiyer
Beginner
Beginner
Posts: 7
Joined: Tue Oct 07, 2008 8:54 pm

Re: Need explanation of _menuCloseDelay and _menuOpenDelay

Post by sudheshnaiyer »

Thank you for being patiently answering my questions.

I changed them to:_menuCloseDelay=10000000000000000000;
_menuOpenDelay=10000000000000000000;
_subOffsetTop=2;
_subOffsetLeft=-2;
hrizontalMenuDelay=true;
retainClickValue=true;

But I still don't see any changes. I increased it open and close delays to 10 exp 16sec. But still no change. I am setting them
in the first few lines of menu_data.js. Is there anything else that I need to set along with the above setting to achieve
I need the submenus to open after certain delay. What I really need to do is to open submenus when the user pauses on
the menu item as opposed to simply sweeping across menus with their mouse. This is because I want to prevent misfires.
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Re: Need explanation of _menuCloseDelay and _menuOpenDelay

Post by Ruth »

Hi,

I need a page with your menu on it to see what the problem is. I just tested this on my desktop set at 1500 for open and close and it is very obvious.

Ruth
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Re: Need explanation of _menuCloseDelay and _menuOpenDelay

Post by Ruth »

Hmm, I just realized something, you have retain click value, are you setting this menu to open on click? If so, the delays will do nothing since the menu responds to the click action, not a mouseover.

Ruth
sudheshnaiyer
Beginner
Beginner
Posts: 7
Joined: Tue Oct 07, 2008 8:54 pm

Re: Need explanation of _menuCloseDelay and _menuOpenDelay

Post by sudheshnaiyer »

I am not sure whether you can access my trial page on my local server since this is inside the firewall. I don't
want menu to open on click. I was trying all possible options and so added retainClickValue=1;. Even when I remove this
I don't see any difference.

My sample page:
http://192.168.190.198:7001/MilonicMenu/index.html

This is happening in our production server also. So I want to fix it on local machine and apply the same changes on
production.

In case if you can't access the page, I am attachig menu_data.js. Are there any other parameters that would conflict
with menuOpenDelay and menuOpenDelay=; What are all the params in all the files that I need to set to achive this?

I had my mouse on "Samples" and when I tried to select "Office 2003 menu", I accidentally dragged my mouse over "Milonic".
So Milonic menu got fired and Milonic submenu opened before I reach to "Office 2003 menu". User has to be extra extra
cautious not to drag the mouse over another horizantal menu, instead they have to drag down and traverse to side, which is
very cumbersome.

So I want Milonic submenu to be opened only when the user stays on Milonic menu for certain time.

Please find the attachement of js files.
Attachments
js.zip
(24.09 KiB) Downloaded 639 times
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Re: Need explanation of _menuCloseDelay and _menuOpenDelay

Post by John »

Also note that 'horizontal' is spelled incorrectly...

Code: Select all

hrizontalMenuDelay=true;
John
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Re: Need explanation of _menuCloseDelay and _menuOpenDelay

Post by Ruth »

Great catch, John. I never even noticed that, and yes that is the problem.

Ruth
sudheshnaiyer
Beginner
Beginner
Posts: 7
Joined: Tue Oct 07, 2008 8:54 pm

Re: Need explanation of _menuCloseDelay and _menuOpenDelay

Post by sudheshnaiyer »

Ruth/John,

Thank you very much for your support. I wouldn't have got this spelling mistake for a long time.

This solved the problem.
Post Reply