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

help with creating submenus


Poster: hulleric
Dated: Tuesday November 4 2003 - 20:20:19 GMT

:?: I am trying to create a submenu and need some help. I have the main menu. From the main menu there is another menu.
aI("text=Bantam Black;url=../bantam_black/index.htm;showmenu=Bantam Black;");

then I want to call this menu...

with(milonic=new submenu("Bantam Black")){
style=menuStyle;
aI("text=Main;url=http://www.weeelks.org/bantam_black/index.htm;status=Bantam Black Main Page;"};
aI("text=Roster;url=http://www.weeelks.org/bantam_black/photos.htm;status=Bantam Black Photos;");
aI("text=Photos;url=http://www.weeelks.org/bantam_black/roster.htm;status=Bantam Black Roster;");
aI("text=Game Article;url=http://www.weeelks.org/bantam_black/article.htm;status=Bantam Black Game Article;");
}

I can't seem to get it to work. Please help!


Poster: John
Dated: Tuesday November 4 2003 - 20:58:49 GMT

Where did you get with(milonic=new submenu("Bantam Black")){ ??

Should be...
Code:
with(milonic=new menuname("Bantam Black")){

etc.

Required reading for this course is at http://www.milonic.com/forum/viewtopic.php?t=2981 :!:


Poster: hulleric
Dated: Tuesday November 4 2003 - 21:12:32 GMT

Thanks for the reply. I changed it and now I can not see any part of the menu...

Here is what I have for the submenu...

with(milonic=new menuname("Teams")){
style=menuStyle;
overflow="scroll";
aI("text=Listing of all teams and emails for coaches;url=../teams.htm;");
aI("text=Bantam Black;url=../bantam_black/index.htm;showmenu=Bantam Black;");
aI("text=Bantam Gold;showmenu=Bantam Gold;");
aI("text=Bantam White;showmenu=Bantam White;");
aI("text=Mini Tackle Black;showmenu=Mini Tackle Black;");
aI("text=Mini Tackle Gold;showmenu=Mini Tackle Gold;");
aI("text=Mini Tackle White;showmenu=Mini Tackle White;");
aI("text=Fourth Black;showmenu=Fourth Black;");
aI("text=Fourth Gold;showmenu=Fourth Gold;");
aI("text=Fourth White;showmenu=Fourth White;");
aI("text=Fifth Black;showmenu=Fifth Black;");
aI("text=Fifth Gold;showmenu=Fifth Golde;");
aI("text=Fifth White;showmenu=Fifth White;");
aI("text=Sixth Black;showmenu=Sixth Black;");
aI("text=Sixth Gold;showmenu=Sixth Golde;");
aI("text=Sixth White;showmenu=Sixth White;");
}

with(milonic=new menuname("Bantam Black")){
style=menuStyle;
aI("text=Main;url=http://www.weeelks.org/bantam_black/index.htm;status=Bantam Black Main Page;"};
aI("text=Roster;url=http://www.weeelks.org/bantam_black/photos.htm;status=Bantam Black Photos;");
aI("text=Photos;url=http://www.weeelks.org/bantam_black/roster.htm;status=Bantam Black Roster;");
aI("text=Game Article;url=http://www.weeelks.org/bantam_black/article.htm;status=Bantam Black Game Article;");
}


Poster: John
Dated: Tuesday November 4 2003 - 21:47:16 GMT

Post a URL.


Poster: Hergio
Dated: Tuesday November 4 2003 - 22:10:30 GMT

If Teams is your top most menu, you need to add top and left coordinates to it as well as put in the alwaysvisible=1.


Poster: hulleric
Dated: Wednesday November 5 2003 - 13:30:54 GMT

Here is the url
http://www.weeelks.org/bantam_black/team_template.html

I am still working on the menu and it is not live. Yet.


Poster: John
Dated: Wednesday November 5 2003 - 19:50:27 GMT

Not 100% sure about this, but I don't think you can change the names of the menu code files (there's no reason to, anyway). You can, however, name the _data file anything you like. Try putting the code files back the way they were.

I'd also move the 3 code file calls out of the <td> and up to the first items after the <body>. You can leave the _data call in the <td>.

Also, move up to RC20. You're quite a bit down-level.


Poster: hulleric
Dated: Wednesday November 5 2003 - 21:25:53 GMT

What is RC20?


Poster: Hergio
Dated: Wednesday November 5 2003 - 21:33:05 GMT

Release Candidate 20, the latest as of today. Go to Milonic.com and download the menu again and you will get all updated versions of all the code, and replace your milonic_src, mmenudom, and mmenuns4 files with the ones you download. But make backups of them just in case. ;)


Poster: hulleric
Dated: Wednesday November 5 2003 - 21:56:40 GMT

OK. Thanks for the help. I now have th updated files. Check out this url
http://www.weeelks.org/index_menu.html

When you open the teams link the menu that opens from that is to the right? Any ideas?


Poster: John
Dated: Wednesday November 5 2003 - 23:56:43 GMT

I brought your code down to my machine. The only thing I changed was to move the menu code calls (not the _data call) out of the <td> and up to the first items after <body>. The Team sub-menu is now under Team, the scrollbar is there, and all the sub-subs open as well. Safari1(v85).