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

Help?


Poster: smashf18
Dated: Wednesday February 23 2005 - 0:09:28 GMT

Hi all. I am working on a website for my fraternity and trying to get the horizontal menubar to work before applying for the free license. I am having a lot of problems trying to get the mouseover to work. I keep getting error messages linking to the _menuCloseDelay &
_menuOpenDelay. The error says the two are undefined. Also, in frontpage, the if/else statements are brown as well as the entire path for the menubar. There appears to be no formatting linking to the menu_data.js file. Any suggestions or ideas? Any help is appreciated.

Will


Poster: John
Dated: Wednesday February 23 2005 - 3:58:46 GMT

Please post a URL (as requested).

Requested URL


Poster: smashf18
Dated: Wednesday February 23 2005 - 14:36:50 GMT

Here is a temporary URL I am using until the site is published:

http://www.angelfire.com/pa5/axpomegaphi5/

thanks!


Poster: John
Dated: Wednesday February 23 2005 - 15:25:29 GMT

Your _data file is pretty messed up. Some reading on proper syntax would be in order.
Code:
with(main=new menuname("omegaphi")){

Should be (ALL instances)...
Code:
with(milonic=new menuname("omegaphi")){

Code:
style="menuStyle";

Should be...
Code:
style=menuStyle;

No quotes around the style name.
Code:
aI("text=Undergraduate Brothers; showmenu=undergrad);

Should be...
Code:
aI("text=Undergraduate Brothers;showmenu=undergrad;");

Note missing closing " and no space between items (e.g., Brothers; show...). Also, all aI statements should close as shown - ;"); .
Code:
aI("text=National History;url=http://www.alphachirho.org/" target="_blank");

Should be...
Code:
aI("text=National History;url=http://www.alphachirho.org/;target=_blank;");

Code:
style=menuStyle";

Should be...
Code:
style=menuStyle;

Remove the trailing quote.

Also, move all the JS menu calls up to be the FIRST items after body.

A little less speed and a lot more care is suggested... :)

Thank you


Poster: smashf18
Dated: Wednesday February 23 2005 - 17:25:36 GMT

Thanks for the fixes. They are appearing now, just having a slight problem with the submenus, but I am sure it is related to sloppiness.


Poster: John
Dated: Wednesday February 23 2005 - 17:48:25 GMT

Yeah, you could say that. :roll:

The subs events, fun, and links, called by your main menu, are not defined anywhere.


Poster: smashf18
Dated: Wednesday February 23 2005 - 18:33:23 GMT

Those are not the ones I am having a problem with. Eventually I will creat pages for those. Right now as far as I can see I can't get under Omega Phi the Undergrads and Grads to appear. Did I make a mistake in the coding?

I really appreciate the help. I am sort of learning javascript "on the fly."

Will


Poster: kevin3442
Dated: Wednesday February 23 2005 - 20:09:05 GMT

Hi Will,

The "undergrad" and "grads" submenus are not showing because of the following code at the top of your menu_data.js file:
Code:
_subOffsetTop="10"
_subOffsetLeft="-10"

These are numeric variables, not string variables. So, remove the double quotes that you have around the values (making the values numeric). Like so:
Code:
_subOffsetTop=10
_subOffsetLeft=-10

That should do it.

FYI: the reason the "omegaphi" submenu opened and the others didn't is because the top and left menu offsets only apply to submenus thath are opened from a vertical parent menu. If your main menu had been vertical, the omegaphi menu also would not have opened.

Cheers,

Kevin


Poster: smashf18
Dated: Thursday February 24 2005 - 0:52:28 GMT

Ah. So much better. Thanks for the help. It is greatly appreciated. I guess I just need to learn javascript better and slow down when I am typing everything.

This menu really is the greatest out there.


Poster: Ruth
Dated: Thursday February 24 2005 - 2:42:02 GMT

Hi,
You said you were new to the menu. You might take a look at the Beginners' Guide. It really is very basic, a pretty quick read with some examples for some basic things.

Ruth