-
Pet Projects
Monthly Archives: September 2011
Found this little gem in Stackoverflow. $(function() { $("img") .mouseover(function() { var src = $(this).attr("src").match(/[^.]+/) + "over.gif"; $(this).attr("src", src); }) .mouseout(function() { var src = $(this).attr("src").replace("over", ""); $(this).attr("src", src); }); }); Thanks to Jarrod Dixon. Here is another simpler version. … Continue reading
Posted in General
2 Comments