help with creating submenus

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
hulleric
Advanced
Advanced
Posts: 16
Joined: Tue Nov 04, 2003 9:17 pm

help with creating submenus

Post by hulleric »

:?: 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/ind ... tus=Bantam Black Main Page;"};
aI("text=Roster;url=http://www.weeelks.org/bantam_black/pho ... tus=Bantam Black Photos;");
aI("text=Photos;url=http://www.weeelks.org/bantam_black/ros ... tus=Bantam Black Roster;");
aI("text=Game Article;url=http://www.weeelks.org/bantam_black/art ... tus=Bantam Black Game Article;");
}

I can't seem to get it to work. Please help!
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

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

Should be...

Code: Select all

with(milonic=new menuname("Bantam Black")){
etc.

Required reading for this course is at http://milonic.com/forum/viewtopic.php?t=2981 :!:
John
hulleric
Advanced
Advanced
Posts: 16
Joined: Tue Nov 04, 2003 9:17 pm

Post by hulleric »

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/ind ... tus=Bantam Black Main Page;"};
aI("text=Roster;url=http://www.weeelks.org/bantam_black/pho ... tus=Bantam Black Photos;");
aI("text=Photos;url=http://www.weeelks.org/bantam_black/ros ... tus=Bantam Black Roster;");
aI("text=Game Article;url=http://www.weeelks.org/bantam_black/art ... tus=Bantam Black Game Article;");
}
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

Post a URL.
John
User avatar
Hergio
Milonic God
Milonic God
Posts: 1123
Joined: Wed Jun 12, 2002 7:46 pm
Location: Rochester, NY

Post by Hergio »

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.
Dave Hergert
Software Engineer
"Helping to make the menu better, one :?: at a time."
hulleric
Advanced
Advanced
Posts: 16
Joined: Tue Nov 04, 2003 9:17 pm

Post by hulleric »

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.
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

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.
John
hulleric
Advanced
Advanced
Posts: 16
Joined: Tue Nov 04, 2003 9:17 pm

Post by hulleric »

What is RC20?
User avatar
Hergio
Milonic God
Milonic God
Posts: 1123
Joined: Wed Jun 12, 2002 7:46 pm
Location: Rochester, NY

Post by Hergio »

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. ;)
Dave Hergert
Software Engineer
"Helping to make the menu better, one :?: at a time."
hulleric
Advanced
Advanced
Posts: 16
Joined: Tue Nov 04, 2003 9:17 pm

Post by hulleric »

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?
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

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).
John
Post Reply