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:27

Cannot adjust appearance delay


Poster: gourmand_r
Dated: Friday October 28 2005 - 6:40:49 BST

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.


Poster: Andy
Dated: Friday October 28 2005 - 12:55:14 BST

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

Code:
horizontalMenuDelay=true;


Hope this helps,
Andy


Poster: gourmand_r
Dated: Friday October 28 2005 - 16:22:24 BST

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.


Poster: gourmand_r
Dated: Sunday October 30 2005 - 11:01:21 GMT

Please help! How to tune menu in the manner I need?


Poster: Ruth
Dated: Monday October 31 2005 - 19:02:09 GMT

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


Poster: gourmand_r
Dated: Tuesday November 1 2005 - 6:31:13 GMT

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?


Poster: Ruth
Dated: Tuesday November 1 2005 - 15:12:32 GMT

Hi,

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

Ruth


Poster: gourmand_r
Dated: Tuesday November 1 2005 - 18:35:17 GMT

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:
_menuCloseDelay=1;
_menuOpenDelay=500;
_subOffsetTop=10;
_subOffsetLeft=-10;

horizontalMenuDelay=false;

with(menuStyle=new mm_style()){
openonclick=1;

level begining:
Code:
with(milonic=new menuname("level1")){

sublevel:
Code:
       aI("text=Text in item; showmenu=level1;");

this doesnt work. Sublevel doesnt' appear on click.
If I include
Code:
       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.


Poster: Ruth
Dated: Tuesday November 1 2005 - 19:13:25 GMT

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


Poster: gourmand_r
Dated: Tuesday November 1 2005 - 20:22:19 GMT

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.


Poster: Ruth
Dated: Tuesday November 1 2005 - 22:47:08 GMT

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


Poster: gourmand_r
Dated: Wednesday November 2 2005 - 6:42:19 GMT

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.


Poster: John
Dated: Wednesday November 2 2005 - 13:52:51 GMT

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.


Poster: gourmand_r
Dated: Wednesday November 2 2005 - 16:28:21 GMT

Milonic DHTML Menu - JavaScript Website Navigation System.
Version 5.48 - Built: Thursday September 16 2004


Poster: John
Dated: Wednesday November 2 2005 - 16:34:52 GMT

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.


Poster: gourmand_r
Dated: Wednesday November 2 2005 - 17:00:16 GMT

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.


Poster: gourmand_r
Dated: Thursday November 3 2005 - 22:43:55 GMT

Ahm... No response. Using latest relase I've got the same. :(


Poster: gourmand_r
Dated: Thursday November 10 2005 - 16:41:08 GMT

Anybody can help more?!


Poster: Ruth
Dated: Thursday November 10 2005 - 17:41:09 GMT

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:
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


Poster: gourmand_r
Dated: Friday November 11 2005 - 6:44:26 GMT

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


Please give a sample.


Poster: Ruth
Dated: Friday November 11 2005 - 7:55:20 GMT

Code:
aI("text=Text in item; showmenu=level1;openonclick=1;");


Ruth


Poster: gourmand_r
Dated: Saturday November 12 2005 - 1:03:31 GMT

Tried without success. Don't know what is wrong. Please give me mail to send address of my page.


Poster: Ruth
Dated: Saturday November 12 2005 - 14:31:33 GMT

I messed up the one posted at the other topic. webmaster [at] poems2u [dot] com. :oops:

Ruth


Poster: Ruth
Dated: Saturday November 12 2005 - 20:20:26 GMT

Hi,

First, you want to put a drawMenus(); just before the //end top menu

Code:
}
   drawMenus();
//end top menu
</SCRIPT>


These are the aI strings with the showmenu and openonclick from your viewsource, and I also see the same thing when I downloaed the page.

Code:
aI("text=Ïåðñîíàëüíûå ñòîÿíêè; showmenu=level1; openonclick=1; ");
aI("text=Îáùåå ìåñòî; showmenu=level2; openonclick=1; ");
aI("text=Ïåñíÿêè; showmenu=level3; openonclick=1; ");
aI("text=Êëóá Ëèëà; showmenu=level4; openonclick=1; ");
aI("text=Êîíêóðñû; showmenu=level5; openonclick=1; ");
aI("text=Ññûëêè; showmenu=level6; openonclick=1; ");
aI("text=Îá ýòîì ñàéòå.; showmenu=level7; openonclick=1; ");
aI("text=ÐÃÓ; showmenu=level8; openonclick=1; ");


Note that there seems to be a space between the end of the text item semi-colon and the showmenu, and also a space between the showmenu semi-colon and the openonclick, and another before the last " of the string. That seems to be causing the problem.

I added the drawmenus() at the end of the submenus and removed the spaces from the 1st aI string for the showmenu=level1 and it opened on click with no problem.

Ruth


Poster: gourmand_r
Dated: Saturday November 12 2005 - 21:56:42 GMT

Ok, I just removed spaces from aI string

Code:
aI("text=Ïåðñîíàëüíûå ñòîÿíêè;showmenu=level1;openonclick=1;");


now all works well. Thanx for help.

But I didnt' get idea about place of drawMenus(). What's wrong there?


Poster: Ruth
Dated: Sunday November 13 2005 - 22:52:14 GMT

Hi,

Placing the menu in a table requires that you leave the drawMenus(); in the menu data file with the submenus and that you also add another drawMenus(); to the main menu that is in the table. You end up with two drawMenus();

I know you have the menus on the page, but I think you still need to have the drawMenus() at the end of the submenu script block as well as at the end of the main menu script block.

Ruth


Poster: Andy
Dated: Monday November 21 2005 - 17:35:40 GMT

Hi,

Is it not possible for you to give us a demo ofr what is happening.

It's extreemly difficult, sometimes impossible, for us to give you an answer as we cannot really see the problem. Once we see the problem, we should be able to help a little more.

-- Andy