Possible Duplicate:
How to write a:hover in inline CSS?
Using CSS, I want to define a link’s style. However, I want to do it in document, instead of defining it as part of the header. Is it possible to define it (including a:hovor, a:visited, etc).
I’m using the tag, and I would like to be able to do
<a style="a:hovor:color:#ffffff"><!-- ... --></a>
or something like that. I’m pretty sure that doesn’t work. So how would define that, or can you even?
If you really need to do this inline without stylesheets, you can solve this with javascript:
<a onmouseover=”window.oldlinkcolor=this.style.color;this.style.color=’#ffffff’;” onmouseout=”this.style.color=window.oldlinkcolor;”>…</a>
Though, using onmouseover and onmouseout statically like that is also bad practice, but it will solve your issue cross browser.