Created
December 1, 2014 17:56
-
-
Save CEscorcio/fb59d4f0c54d9ef78fbc to your computer and use it in GitHub Desktop.
hover dinamico com jquery
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
$(".icone").hover(function(){ | |
$(this).attr("src", function(index, attr){ | |
return attr.replace(".png", "_0.png"); | |
}); | |
}, function(){ | |
$(this).attr("src", function(index, attr){ | |
return attr.replace("_1.png", ".png"); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment