$(function(){ $("#requestImg").on({ mouseover: function(){ $(this).attr({ 'src': 'images/req03.png', 'title': '@rise' }); }, mouseout: function(){ $(this).attr({ 'src': 'images/req02.png', 'title': '@rise' }); } }); });