When I embed these commands into my JavaScript, I'm easily able to switch background and text colors when mousing over a menu item:
Code: Select all
onbgcolor="#000000";
oncolor="#D2B48C";
offbgcolor="#D2B48C";
offcolor="#000000";
However, I need to migrate all colors to my stylesheet, so I replace the above four lines with these two lines when creating a menu style:
Code: Select all
onclass="mainmenuon";
offclass="mainmenuoff";
Code: Select all
/* When someone does a mouse-over an item on the "new" menu. */
.mainmenuon {
color: #D2B48C;
background-color: #000000;
font-size: 8pt;
font-family: Arial;
text-decoration: none;
}
/* When someone does a mouse-out an item on the "new" menu. */
.mainmenuoff {
color: #000000;
background-color: #D2B48C;
font-size: 8pt;
font-family: Arial;
text-decoration: none;
}
1. when an actual link is not highlighted (mouse-over), the text appears red and not black.
2. when i mouse-over the menu item, the background color changes to black, but the link text remains red.
I've tried what seems like a million combinations and permutations of stylesheet and menu creation changes, all to no avail.
Anyone have any suggestions?
For what it's worth, you can see this in action here - http://football17.myfantasyleague.com/2004/home/79090 and the relevant stylesheet is here - http://www17.myfantasyleague.com/fflnet ... /79090.css