/ Published in: jQuery
Expand |
Embed | Plain Text
var $s = jQuery.noConflict(); $s(function() { $s("img.hover-change") .mouseover(function() { var src = $s(this).attr("src").match(/[^\.]+/) + "_over.gif"; $s(this).attr("src", src); }) .mouseout(function() { var src = $s(this).attr("src").replace("_over", ""); $s(this).attr("src", src); }); });
You need to login to post a comment.
