Hello all,
I am creating a customize site page that dynamically changes the current page so that you can see a preview of what you are changing. Everything is working pretty well, except that the code I'm using apparently can't handle pseudo-classes such as :hover
and :visited
.
The code is very simple, I am basically doing the following:
$("#links td.active a:hover").css("color", "#ff0000");
However, this doesn't actually set the <a>
tag's hover color to #ff0000
. It works fine if I take off the :hover
though. Anybody have an suggestions as to how to get this to work?
Thanks very much!
Edit 1: Apparently, I might be going about it wrong altogether. Some more information shows that I might be able to use document.styleSheets.inlinestyle.rules
to modify it, although this apparently only works in IE. Any more ideas would be greatly appreciated.