Created
February 21, 2012 16:04
-
-
Save wanghailei/1877164 to your computer and use it in GitHub Desktop.
JS: Mouse Enter and Leave Effect
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function hover_line() { | |
$('#left li').mouseenter(function() { | |
$(this).addClass("hovered"); | |
}).mouseleave(function() { | |
$(this).removeClass("hovered"); | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment