Is it possible to make your own class properties. I want to refer to a property in the style sheet for ahighlight function I'm making.
As you can see, the mouseover has the highlight hardcoded, whereas the mouseout takes the original colour from the stylesheet.
Can I make a poperty of the element I'm changing (a TD in this case) such as "swapcolor: #E5E1E1;"? I tried but the colour comes up green and I know that's not right.
I also tried doing it like this but to no avail.
If anyone has a better way of specifying the highlight colour without hardcoding it let me know.
onmouseover="this.bgColor=(this.style.color + #222222)"