Created
May 31, 2010 09:22
-
-
Save casparkleijne/419686 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| /** toggles between classes Normal & Hover on any element that has one of those classes | |
| it is a replacement for the :hover pseudo-class (so quite useless nowadays ;) **/ | |
| $(".Normal, .Hover").bind("mouseenter mouseleave", function () | |
| $(this).toggleClass("Hover Normal"); | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment