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

2 horizontal menus, end-to end? Or diff. styles on a menu?


Poster: cowboyinbrla
Dated: Monday June 18 2012 - 1:47:07 BST

Hi again - A different question from my last (which Ruth solved, thanks!):

Is it possible to either (A) position two horizontal menus "end to end" - so that they appear to be, more or less, a single menu, or (B) is it possible to apply more than one menustyle to different elements in the same "level" on a menu?

I have a horizontal "main menu" for users logged into my site - let's call the elements Main1, Main2, Main3, Main4, Main5, Main6. Main1 through Main5 "drop down" with submenus; Main6 is a "log off" option that simply logs the user out and returns him to the index page for the site (which has no menus, just the log in functions and some general information). The main menu is placed centered within a <div> on the website.

Currently, the Main Menu features dark blue backgrounds with white text (reversing to light blue with black text for highlighted selections). What I'd like is for the Main6 option - Log Out - to show instead with a red background, to remind users that they should log out when done.

If I use two separate menus, even with both inside a single pair of <center> </center> tags, the second menu appears below the first. I've even tried using the two menus with a single "DrawMenus()" command following both, but that doesn't seem to do anything differently than if I have two separate "DrawMenus()" commands, one for each menu.

I'm hoping this question is clear enough without a link to code - all my "menu driven" pages are now inside the login-protected part of the site. However, if not - I can create one that doesn't include the login-check so that it's visible "outside".

Thanks!

Re: 2 horizontal menus, end-to end? Or diff. styles on a men


Poster: Ruth
Dated: Monday June 18 2012 - 3:03:43 BST

Hi,

Can you give me a page with the menu/menus to see? I have to have that with regard to having separate menus. If not, and taking your main1 etc stuff, then I can fix it in one menu. What is so fabulous about this menu is that many 'properties' can be placed in style or item. That's why I love this menu, I can do so many fabulous style things with it :) So, not knowing what your logout says, let's pretend:

Code:
aI("text=LogOut;url=whatever goes here for the log out;");
This item would have the same color as all others, but you could code in the item what properties you want like this:

Code:
aI("text=LogOut;offbgcolor=#ff0000;onbgcolor=#ffff00;offcolor=#000000;oncolor=#ff0000;url=whatever goes here for the log out;");


Coding like that would give that particular item a red background with black text when the mouse is not on it, and a yellow background with red text when the mouse goes over it.

Hope this helps :)

Ruth

Re: 2 horizontal menus, end-to end? Or diff. styles on a men


Poster: cowboyinbrla
Dated: Monday June 18 2012 - 3:35:53 BST

That does - I assume, in effect, that the formatting code for a menu ITEM (each individual "aI" line) overrides the code for the menu overall ("style=stylename") ?

Knowing that, I can fix this pretty simply in a single menu - which, naturally, is my first choice (easier to maintain). I'll test that and see if that works as I think it will.

Kevin

Re: 2 horizontal menus, end-to end? Or diff. styles on a men


Poster: cowboyinbrla
Dated: Monday June 18 2012 - 4:07:27 BST

It does indeed work - thank you, Ruth! You deserve a raise.

Kevin

Re: 2 horizontal menus, end-to end? Or diff. styles on a men


Poster: Ruth
Dated: Monday June 18 2012 - 4:25:12 BST

My 'raise' is the thanks I get, I'm a volunteer and do not work for Milonic. I just love this menu and I like helping people so I began helping in the forum. That in turn helped me to learn so many things I could do with it. I think it is so easy to use, very easy to understand as far as styling goes since it is in 'plain' language, i.e. offbgcolor, fontsize etc. :) Anyway, I am glad I could help.

Ruth