Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Feb 2003
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    help please, getting the hover color propery from css

    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?

  • #2
    ubh
    ubh is offline
    Regular Coder ubh's Avatar
    Join Date
    Apr 2008
    Location
    Portland, Oregon U.S.A.
    Posts
    443
    Thanks
    108
    Thanked 15 Times in 14 Posts
    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


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •