Created
December 8, 2014 16:57
-
-
Save staroselskii/2a7ab5021b98b56cf8d8 to your computer and use it in GitHub Desktop.
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
$(document).ready(function(){ | |
$('.menuitem-pic').hover(function() { | |
picname = $(this).attr('src'); | |
picname = picname.substring(0, picname.length - 4); | |
$(this).attr('src', picname + "_active.png"); | |
}, | |
function() { | |
$(this).attr('src', picname + ".png"); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment