{I+=codeWee;} |
<img id="img_button" src="image_normal.png"/> <script> $("#img_button").on({ "mouseover" : function() { this.src = 'image_over.png'; }, "mouseout" : function() { this.src='image_normal.png'; }, "click" : function() { // do something... } }); </script>