{I+=codeWee;}
[Javascript] jquery: custom image button

	<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>
HTML | PHP | C++ | DirectX11 | Javascript | C# | HTML5 | ASP | SQL | General | CSS | Oculus Rift | Unity3d | Virtools SDK | Tip | NSIS | PowerShell | node.js | Web API | RTSP | All
Copyright© 2016 CodeWee.com All rights reserved.