javascript interferes with :hover

Discussion in 'JavaScript' started by Lafaso870, May 13, 2011.

  1. #1
    I'm using javascript to change the background position of an image, but am also using CSS to do a hover (the image has 3 states).

    After I use javascript on the object once, it no longer responds to the CSS hover. Is there a way to reset it or something?
     
    Lafaso870, May 13, 2011 IP
  2. marsian

    marsian Active Member

    Messages:
    150
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    58
    #2
    what axactly are you trying to do? post the script.
     
    marsian, May 13, 2011 IP
  3. andrewgail

    andrewgail Guest

    Messages:
    4
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    I'm using javascript to change the background position of an image, but am also using CSS to do a hover. The .hover() method binds handlers for both mouseenter and mouseleave events. You can use it to simply administer behavior to an aspect during the time the abrasion is within the element.
     
    andrewgail, May 13, 2011 IP