onMouseOver = "this.style.backgroundColor = '#000000';"
onMouseOut = "this.style.backgroundColor = '#FFFFFF';"
i.e. in the onMouseOut, i don't want to have to manually input the color which in the first place is found in the stylesheet.
i've tried using .menuItemHover, and changed classes onMouseOver/onMouseOut but cancelled that idea cos i found it too difficult and confusing.
Check out the
However, you may simply need to do
onmouseout = "this.style.backgroundColor = ''";
This will remove the background property from the inline style object and let the browser recalculate the background colour using the normal style cascade.
Thanks Chris!! very
Thanks Chris!! very helpful!!!!