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

different bgcolor for each submenu - possible?


Poster: donH
Dated: Thursday April 22 2004 - 18:11:31 BST

I have one main menu that will have various submenus.
Does anyone know if it is possible to make each submenu have a different bgcolor, or is that a global control (i.e. menu-wide)?
I tried inserting offbgcolor like this:

Code:
with(milonic=new menuname("Milonic")){
style=menuStyle;
menuwidth=168;
menualign="left"
offbgcolor="#cccccc";
aI("image=images/arrow_submenu.gif;overimage=images/arrow_submenu_roll.gif;text=Giving Options;url=/menusample1.php;");


But it seemed to have no effect. The page is at: http://test.hinshawdesign.com/slplf/men ... me_v2.html if anybody has a moment to look.

Thanks,
Don


Poster: John
Dated: Thursday April 22 2004 - 18:16:09 BST

See http://www.milonic.com/menusample7.php. Lots of good stuff over there.

different bgcolor for each submenu - possible?


Poster: donH
Dated: Thursday April 22 2004 - 18:32:38 BST

Thanks John,
OK, so now that I have the background color of the menuitem set to a specific color, how do I get it to fill the entire width of the drop-down "container" which I have given a width to ( menuwidth=168;).
As you will see at http://test.hinshawdesign.com/slplf/men ... me_v2.html
the color only goes as far as the text in the longest menu item!

Thanks again,
Don


Poster: Ruth
Dated: Thursday April 22 2004 - 18:49:38 BST

I don't think you want to put bgcolor in one item, but the full submenu, is that correct?
You can actually create a different color for each submenu if that's what you want.
This talks about styles and creating them, making more than one if you want a different
one for each menu. You probably want to scroll down this topic to Part III, though the
whole thing might be a help.
http://www.milonic.com/forum/viewtopic.php?t=4600

Ruth


Poster: aquaverse
Dated: Wednesday May 18 2005 - 12:56:00 BST

I was browsing through this thread, but the link you posted above is no longer valid. Can someone help me with this?

Thanks.


Poster: Ruth
Dated: Wednesday May 18 2005 - 17:23:12 BST

Hi,

Sorry, I made some changes and reposted that. I didn't think about it changing the post number :oops:

I've corrected that link. It's part II of styling the menu in the Beginners' Guide forum. It's very basic.

Ruth