×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Javascript
Posted by: Mark Foster
Added: Mar 22, 2014 1:18 PM
Views: 26
Tags: no tags
  1.  
  2. jQuery(function(){
  3.      $(".img-swap").hover(
  4.           function(){this.src = this.src.replace("_off","_on");},
  5.           function(){this.src = this.src.replace("_on","_off");
  6.      });
  7. });