multiple horizontal menus (generated programtically)

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
me4ohio
Beginner
Beginner
Posts: 4
Joined: Tue Aug 31, 2004 7:37 am

multiple horizontal menus (generated programtically)

Post by me4ohio »

I got a tricky one here for you.

I am making a system in which users will create pages and site navigation on the fly. I need to be able to generate the javascript for the milonic menu to handle any and all of their needs. This is fine if they have 7-10 items on the top level navigation, but if they go over that and depending on the length of the texts, I need a way to jump the horizontal menu down to the next line.

As I have it now, the menu continues to build across the screen when they have 10+ top level pages and this distorts the site (which is really bad). Need to have a solution which functions logically and still looks good.

So, as I see it, maybe three options:

1.) you already have some neato option which will break the menu to the next line when I need it too -- I'm hoping for this one...

2.) i/you/we modify the script to place a <br> tag in the DHTML so the horizontal menu breaks to the next line

3.) I abandon using the milonic menu to handle the top level buttons(images), do them myself, and use the milonic menu as popups for the rest of the menu system...

I'm thinking if option 1 doesn't already exist, option 3 will be the most feasible for me.

Let me know what you got for me...

Thanks in advance,

M
User avatar
kevin3442
Milonic God
Milonic God
Posts: 2460
Joined: Sat Sep 07, 2002 12:09 am
Location: Lincoln, NE
Contact:

Post by kevin3442 »

Hi M,

Sorry to be the bearer of bad news: Option 1 does not exist. Option 2 will not work (it'd take way, way more than just a <br>).

Regarding Option 1. I assume you are generating the menus dynamically, probably from a database, using asp, php, jsp, or some such... correct? If so, it wouldn't be a stretch to check the item number limit, menu width limit, etc... and when it is exceeded, create a second, separate main menu positioned directly under the first (there have been several users who do this statically). From the user's point of view, it would look like your Option 1: one main menu with two rows.

Otherwise, Option 3 sounds doable too.

Sorry the news isn't better.

Kevin
me4ohio
Beginner
Beginner
Posts: 4
Joined: Tue Aug 31, 2004 7:37 am

Post by me4ohio »

kevin,

yeah. i think i may go with option 3 and just do the popup thing. i am using asp.net to generate dynamically from a database and xml file.

just wanted to check first.

thanks,

Mike
Post Reply