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

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
cowboyinbrla
Advanced
Advanced
Posts: 11
Joined: Tue Dec 12, 2006 8:05 pm

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

Post by cowboyinbrla »

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!
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

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

Post by Ruth »

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: Select all

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: Select all

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
cowboyinbrla
Advanced
Advanced
Posts: 11
Joined: Tue Dec 12, 2006 8:05 pm

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

Post by cowboyinbrla »

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
cowboyinbrla
Advanced
Advanced
Posts: 11
Joined: Tue Dec 12, 2006 8:05 pm

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

Post by cowboyinbrla »

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

Kevin
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

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

Post by Ruth »

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
Post Reply