Yes, it's possible to put individual background colors in the menus. You have to edit the script. I've gotten it to work in both IE and FF, but it's something of a hack, so use it at your own caution. Here we go.
First, pass in the desired color in the onMouseOver:
Code:
onMouseover="dropdownmenu(this, event, menu0, '130px', '#BF8718')"
In this case, I've added the #BF8718 into the array.
Next you need to add some code into into the AnyLink script itself. Add the variable, menucolor at the end of the variable array in the dropdownmenu function, like so:
Code:
function dropdownmenu(obj, e, menucontents, menuwidth, menucolor)
Then we need to rewrite the div tag with the new bg color, so add the code below as the first two lines in the dropdownmenu function like I've done below:
Code:
newText = '<div id="dropmenudiv" style="visibility:hidden;width:'+menuwidth+';background-color:'+menucolor+'" onMouseover="clearhidemenu()" onMouseout="dynamichide(event)"></div>';
document.getElementById("changeDropmenudiv").innerHTML = newText;
That should be it.
Regards,
bfisher
Bookmarks