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.Code:onmouseover="this.bgColor=('#E5E1E1')" onmouseout="this.bgColor=(this.style.color)"
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.Code:onmouseover="this.bgColor=(this.style.color + #222222)"





Bookmarks