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

multiple horizontal menus (generated programtically)


Poster: me4ohio
Dated: Tuesday August 31 2004 - 8:46:16 BST

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


Poster: kevin3442
Dated: Tuesday August 31 2004 - 17:10:15 BST

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


Poster: me4ohio
Dated: Tuesday August 31 2004 - 19:06:51 BST

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