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

Need help with classes for font colour and some bg colours

Poster: dukehenry
Dated: Monday November 6 2006 - 4:22:33 GMT

Hello all, one of the web sites that I am helping tweak the look of is using a milonic javascript navigation menu.

However, I am having a LOT of problems adjusting colours via CSS and through the code that the web site is dynamically generating.

Here is the code for the menu itself:

<script type="text/javascript">
with(milonic=new menuname("menu_1_senavigator1")){alwaysvisible="1";style=c0_senavigatormainmenu_senavigator1;orientation="vertical";align="left";position="relative";menuwidth="100%";itemwidth="100%";divides=1;margin=0;openstyle="ltr";
aI("status=News;text=News;showmenu=menu_1_14_senavigator1;onclass=senavigatoritemover senavigatoritemfirstover;offclass=senavigatoritem senavigatoritemfirst;pageclass=senavigatoritemselected senavigatoritemfirstselected");aI("status=SHOP ONLINE;text=SHOP ONLINE;url=;onclass=senavigatoritemover;offclass=senavigatoritem;pageclass=senavigatoritemselected");aI("status=Free Classifieds;text=Free Classifieds;url=;onclass=senavigatoritemover;offclass=senavigatoritem;pageclass=senavigatoritemselected");aI("status=About Us;text=About Us;showmenu=menu_1_4_senavigator1;onclass=senavigatoritemover;offclass=senavigatoritem;pageclass=senavigatoritemselected");aI("status=Bike :: Buying Tips;text=Bike :: Buying Tips;showmenu=menu_1_12_senavigator1;onclass=senavigatoritemover;offclass=senavigatoritem;pageclass=senavigatoritemselected");aI("status=Bike :: Community;text=Bike :: Community;showmenu=menu_1_6_senavigator1;onclass=senavigatoritemover;offclass=senavigatoritem;pageclass=senavigatoritemselected");aI("status=Bike :: Maintenance;text=Bike :: Maintenance;showmenu=menu_1_11_senavigator1;onclass=senavigatoritemover;offclass=senavigatoritem;pageclass=senavigatoritemselected");aI("status=Bike :: Services;text=Bike :: Services;showmenu=menu_1_10_senavigator1;onclass=senavigatoritemover;offclass=senavigatoritem;pageclass=senavigatoritemselected");aI("status=Bike :: Technical;text=Bike :: Technical;showmenu=menu_1_9_senavigator1;onclass=senavigatoritemover;offclass=senavigatoritem;pageclass=senavigatoritemselected");aI("status=Paintball;text=Paintball;showmenu=menu_1_5_senavigator1;onclass=senavigatoritemover;offclass=senavigatoritem;pageclass=senavigatoritemselected");aI("status=Paintball :: Technical;text=Paintball :: Technical;showmenu=menu_1_13_senavigator1;onclass=senavigatoritemover;offclass=senavigatoritem;pageclass=senavigatoritemselected");aI("status=Snowboard;text=Snowboard;showmenu=menu_1_7_senavigator1;onclass=senavigatoritemover;offclass=senavigatoritem;pageclass=senavigatoritemselected");aI("status=XC Ski;text=XC Ski;showmenu=menu_1_8_senavigator1;onclass=senavigatoritemover;offclass=senavigatoritem;pageclass=senavigatoritemselected");aI("status=Site Map;text=Site Map;url=;onclass=senavigatoritemover senavigatoritemlastover;offclass=senavigatoritem senavigatoritemlast;pageclass=senavigatoritemselected senavigatoritemlastselected");}drawMenus();</script><noscript><ul class="senavigatortext"><li><a href="">News</a><ul><li><a href="">Alter Ego adds Cervelo</a><li><a href="">Psycho Cross 4</a><li><a href="">Giro Helmets!</a><li><a href="">Gary Fisher Bicycles 2007!</a><li><a href="">Specialized Bicycles 2007!</a><li><a href="">Trek Bicycles 2007!</a><li class="selastlink"><a href="">Trek Road Bicycles 2007!</a></ul></li><li><a href="">SHOP ONLINE</a></li><li><a href="">Free Classifieds</a></li><li><a href="">About Us</a><ul><li><a href="">Welcome!</a><li><a href="">Your Privacy</a><li><a href="">Policies and Shipping</a><li class="selastlink"><a href="">Map / Contact Us</a></ul></li><li><a href="">Bike :: Buying Tips</a><ul><li><a href="">How To Pick The Best Bike For You</a><li><a href="">Buying A New Mountain Bike? Here's All You Need To Know</a><li><a href="">How To Buy Comfort And Hybrid Bikes</a><li><a href="">Buying A New Road Bike? Here's All You Need To Know</a><li class="selastlink"><a href="">How To Pick The Right BMX Bike</a></ul></li><li><a href="">Bike :: Community</a><ul><li><a href="">Kids of Mud</a><li class="selastlink"><a href="">Cycling Links</a></ul></li><li><a href="">Bike :: Maintenance</a><ul><li><a href="">Our Handy Dandy Bike Maintenance Chart</a><li><a href="">How To Wash Your Bike</a><li><a href="">Bicycle Tools List</a><li><a href="">Bicycle Lubrication</a><li><a href="">Brake Adjustment</a><li><a href="">Brake Maintenance</a><li><a href="">How To Adjust Your Rear Derailleur</a><li class="selastlink"><a href="">How To Clean Your Chain And Drivetrain</a></ul></li><li><a href="">Bike :: Services</a><ul><li><a href="">Lifetime Service</a><li class="selastlink"><a href="">Service Rates</a></ul></li><li><a href="">Bike :: Technical</a><ul><li><a href="">Frequently Asked Questions</a><li><a href="">Cycling Tips</a><li class="selastlink"><a href="">Chain Replacement And Repair</a></ul></li><li><a href="">Paintball</a><ul><li><a href="">What is Paintball?</a><li><a href="">Why Buy Paintball Gear at Alter Ego Sports?</a><li><a href="">Sponsored Teams</a><li class="selastlink"><a href="">Canadian Team Sponsorship</a></ul></li><li><a href="">Paintball :: Technical</a><ul><li><a href="">What is the differences between barrels?</a><li><a href="">Compressed Air or CO2?</a><li class="selastlink"><a href="">Choosing the right paintball goggles</a></ul></li><li><a href="">Snowboard</a><ul><li><a href="">Why Buy Snowboard Gear at Alter Ego Sports?</a><li><a href="">Service Rates</a><li class="selastlink"><a href="">Snowboard Links</a></ul></li><li><a href="">XC Ski</a><ul><li><a href="">Upcoming XC Ski Events</a><li><a href="">Service Rates</a><li class="selastlink"><a href="">Sponsored Teams</a></ul></li><li class="selastlink"><a href="">Site Map</a></li></ul></noscript>

Here is the "milonic CSS code"
.milonictable {width:100%;background-color: #1a31c1;}
.milonictable td {vertical-align:middle;}
.senavigatoritem a {text-decoration:none;}
.senavigatoritemover {text-decoration:none;}
.senavigatoritemover a {text-decoration:none;}
a.senavigatoritemselected {text-decoration:none;}
a.senavigatoritemselectedover {text-decoration:none;}
.senavigatoritemlastover {text-decoration:none;}

This is what the following code results in:


Here is what I want to know how to accomplish:

I want to be able to:

1. Set the background colour of the regular <a> links, right now they are yellow and I cannot figure out how to make them the same blue as the rest of the menu.

2. Set the font colour - black is too dark to read. Maybe white or a light grey.

3. When you mouseover one of expandable menus, it will expand with a good looking menu (blue bg and white font), but if you mouse over a link, it changes the bg colour to the same yellow as the main menu. I would like to know where I can change this value.

I have tried everything I know to get the job done, I don't know JS so I am at a bit of a loss here.

I have checked out the onclass CSS declarations and they are no help either. I have a feeling this is a simple fix, I just don't know which CSS declaration to look at.

I have tried to search the CSS for the specific background colour that I want to change, with no luck.

Thank you for your time, I hope someone can give me some tips.

Poster: dukehenry
Dated: Monday November 6 2006 - 19:23:35 GMT

Alright, I have been reading the FAQ's and whatnot on style and so I have come to the following conclusions:

out of the mess of code that I posted above regarding the menu output, these are the keys for styling:

If this is an element that is being posted:

aI("status=News;text=News;showmenu=menu_1_14_senavigator1;onclass=senavigatoritemover senavigatoritemfirstover;offclass=senavigatoritem senavigatoritemfirst;pageclass=senavigatoritemselected senavigatoritemfirstselected");

onclass and offclass should be key in designating style. However, I have attempted to use the classes with no success.

I have tried the following CSS:


.senavigatoritemover {
   background-color      : orange;
   color               : white;

.senavigatoritem {
   background-color      : green;
   color               : white;

.senavigatoritemselected {
   background-color      : red;
   color               : white;

It doesn't seem to have any effect, as well as other selector versions such as a.senavigatoritemselected and whatnot.

If anyone can share their insight I would really appreciate it.

Also, to see the menu in action you can go to

Poster: dukehenry
Dated: Monday November 6 2006 - 19:30:53 GMT

I should also note that I have contacted the vendor who is providing the software for us to update their version, but I still hope that my problem can be addressed by someone in "the know".


Poster: John
Dated: Tuesday November 7 2006 - 14:04:52 GMT

As you noted, your menu version is way down-level. For support in the forum you must get up to the current version, v5.762 as this is written.

Also, your menu calls are incorrect. See the readme file in the docs folder or

You're also missing the drawMenus(); item at the end of your main menu.

Poster: Ruth
Dated: Saturday November 11 2006 - 19:54:22 GMT


I just downloaded that page to see what I could figure out. Just where exactly am I going to find those classes in the css so I can see what's up? I can't seem to locate any of them.