/ Published in: jQuery
Expand |
Embed | Plain Text
$(".hover").hover( function() { var currentImage = $(this).attr("src"); $(this).attr("src", $(this).attr("hover")); $(this).attr("hover", currentImage); //css("background-position", "-50px 0"); }, function() { var currentImage = $(this).attr("src"); $(this).attr("src", $(this).attr("hover")); $(this).attr("hover", currentImage); });
You need to login to post a comment.
