Cannot adjust appearance delay

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
gourmand_r
Advanced
Advanced
Posts: 14
Joined: Fri Oct 28, 2005 6:22 am

Cannot adjust appearance delay

Post by gourmand_r »

I tried set value for delay before menu appeares but no success. It appoeares instanty when the cursor goes over. Annoys a lot. How tune this delay properly? Please help.
User avatar
Andy
Milonic
Milonic
Posts: 3308
Joined: Sun May 19, 2002 8:23 pm
Location: Menu Developer
Contact:

Post by Andy »

Sounds like you need to add the following to your menu_data.js file:

Code: Select all

horizontalMenuDelay=true;
Hope this helps,
Andy
gourmand_r
Advanced
Advanced
Posts: 14
Joined: Fri Oct 28, 2005 6:22 am

Post by gourmand_r »

Thanx! It worx!
:D
...
:o

If I set menu delay to 500 - then submenu appeares when cursor came over it. But after delay 500 msec. :( I need another behavior - submenu must appear only if cursor stays on top menu for 500 msec. It must not appear if cursor just goes over it quickly.
gourmand_r
Advanced
Advanced
Posts: 14
Joined: Fri Oct 28, 2005 6:22 am

Post by gourmand_r »

Please help! How to tune menu in the manner I need?
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

I don't think you can do it the way you want. The coding is to open the menu when the mouse is placed over the parent item, and the delay is to set how long after you place the cursor on the parent item the menu will open, not how long you have the cursor on the parent item. I would suggest you set it to a longer opening delay and see if that will work for you. For example if you set it at 1000, then if someone mouses over and off the menu quickly the submenu will probably not open at all. But, you'll have to test the time and see.

The other option would be to set it to open on click, then it would only open if they clicked the parent item.

Ruth
gourmand_r
Advanced
Advanced
Posts: 14
Joined: Fri Oct 28, 2005 6:22 am

Post by gourmand_r »

I tried set large value for open delay and short to disapear - it doesn't work like you suppose.

How can I turn off auto drop and turn on appearance only on click?
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

Hi,

You can use the property openonclick=1; That will change the main menu to function when clicked rather than onMouseOver.

Ruth
gourmand_r
Advanced
Advanced
Posts: 14
Joined: Fri Oct 28, 2005 6:22 am

Post by gourmand_r »

Yes, when included under with(menuStyle=new mm_style()){ it works but not properly. There is link under top item - I cannot remove it. It's being generated automatically. When clicked menu doesnt' drop sublevel but follows link instead.

Ok, I tried remove link generation. But after click on top level item nothing happiness.

begining of menu looks like this:

Code: Select all

_menuCloseDelay=1; 
_menuOpenDelay=500;
_subOffsetTop=10;
_subOffsetLeft=-10;
 
horizontalMenuDelay=false; 

with(menuStyle=new mm_style()){
openonclick=1;
level begining:

Code: Select all

with(milonic=new menuname("level1")){
sublevel:

Code: Select all

       aI("text=Text in item; showmenu=level1;");
this doesnt work. Sublevel doesnt' appear on click.
If I include

Code: Select all

       aI("text=Text in item; url=http://someurl; showmenu=level1;");
then I follow to some url on click.

What's wrong? May be I must include "empty url" to call of aI() but I dont' see how do that.
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

Please post your complete menu data file so I can test it on a page. I can't figure out what you mean with just partial listings. Also, what version are you using?

Ruth
gourmand_r
Advanced
Advanced
Posts: 14
Joined: Fri Oct 28, 2005 6:22 am

Post by gourmand_r »

It is large enough... And it containes national alphabets. I can send you link to page with menu but you will not able read any text. Agree?

I use Milonic DHTML Website Navigation Menu V 5.0+

There is no separated menu data file. Menu generation code is being included to page. Levels are generated dynamically by server using special script - it's a base of this site. Values are taken from data base and some used from page context. In my case menu code cannot be stored in separated file, only in page.
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

A link to the page would be helpful. If I can't figure it out, then someone else who reads the post might be able to do that.

Ruth
gourmand_r
Advanced
Advanced
Posts: 14
Joined: Fri Oct 28, 2005 6:22 am

Post by gourmand_r »

I don't wanna broadcast link. My site is for local community of former students graduated by one of the Russian universities. It's not for all. If you can help please give me e-mail. As I see there are not able private messages in this forum.
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

gourmand_r wrote:I use Milonic DHTML Website Navigation Menu V 5.0+
What is the exact version you are using? They run to 3 decimal points, the most current being 5.734.
John
gourmand_r
Advanced
Advanced
Posts: 14
Joined: Fri Oct 28, 2005 6:22 am

Post by gourmand_r »

Milonic DHTML Menu - JavaScript Website Navigation System.
Version 5.48 - Built: Thursday September 16 2004
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

gourmand_r wrote:Milonic DHTML Menu - JavaScript Website Navigation System.
Version 5.48 - Built: Thursday September 16 2004
You'll need to upgrade to the current version before we can take this any further.
John
gourmand_r
Advanced
Advanced
Posts: 14
Joined: Fri Oct 28, 2005 6:22 am

Post by gourmand_r »

Ok, I'll try.
...
I just upgraded to latest release. The same behavior as shown before. Now I noticed browser message "javascript:void(0)" at status line.
gourmand_r
Advanced
Advanced
Posts: 14
Joined: Fri Oct 28, 2005 6:22 am

Post by gourmand_r »

Ahm... No response. Using latest relase I've got the same. :(
gourmand_r
Advanced
Advanced
Posts: 14
Joined: Fri Oct 28, 2005 6:22 am

Post by gourmand_r »

Anybody can help more?!
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

Hi,

First, have you tried setting the opening delay with the new menu. I just tested it in 5.734 and it works fine.

Code: Select all

fixMozillaZIndex=true; //Fixes Z-Index problem  with Mozilla browsers but causes odd scrolling problem, toggle to see if it helps
_menuCloseDelay=500;
_menuOpenDelay=750;
_subOffsetTop=2;
_subOffsetLeft=-2;
horizontalMenuDelay=true;
I set it at 750, 500 seems to work but it's pretty quick so if you slow down a bit when passing over it will open, I thought 750 a better choice.

As to the other, add openonclick=1; to the aI string which has the showmenu= that you want to openonclick.

Ruth
gourmand_r
Advanced
Advanced
Posts: 14
Joined: Fri Oct 28, 2005 6:22 am

Post by gourmand_r »

As to the other, add openonclick=1; to the aI string which has the showmenu= that you want to openonclick.
Please give a sample.
Post Reply