Skip to content

Instantly share code, notes, and snippets.

Created June 27, 2010 22:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/455216 to your computer and use it in GitHub Desktop.
Save anonymous/455216 to your computer and use it in GitHub Desktop.
$(function(){
$(".hasStates").hover(
function(){
newp = $(this).attr('src').replace('_up.','_over.');
$(this).attr('src',newp);
},
function(){
newp = $(this).attr('src').replace('_over.','_up.');
$(this).attr('src',newp);
}
);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment