...

View Full Version : help please, getting the hover color propery from css



eyeweaver
10-26-2008, 11:15 AM
Hello every body

I'm new to javascript, and I've been searching and trying for a week now to read the a:hover properties from css using javascript but I still can't figure it out.
I tried "getcomputedstyle" but instead of "hover" properties it has been giving me the properties of the anchor itself.

can some one help me please?:(

ubh
11-23-2008, 11:16 AM
Ok let me see if I understand this right. You have a pseudo hover condition in your CSS for a link, and you want a onmouseover or onmouseclick attribute to alert the styles of your css hover condition styles??

If this is right, you cant.
Pseudo hover conditions can not be declared inline on an element and there for you can not be alerted.

<--Taps CSS3 on the shoulder :rolleyes:



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum