simple jquery rollover


/ Published in: jQuery
Save to your folder(s)



Copy this code and paste it in your HTML
  1. function roll_over() {
  2. $(".foot_box, .foot_box3").hover(
  3. function() { //RollOver
  4. this.src = this.src.replace("_off","_on");
  5. },
  6. function() { //RollOut
  7. this.src = this.src.replace("_on","_off");
  8. }
  9. );
  10. }

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.