Make a button image change when pressed / focused / disabled : <p>I have several pictures of the same button, each one representing it in a different sate: normal, pressed, focused, disabled.</p>

<p>How can I make it into an html button that automatically shows the correct picture (and also has an onClick event) ?</p>

<p>Feel free to use html / css / javascript. </p>

<p>The tag also doesn't need to be a button, it could be an image, , or whatever you want, but hopefully written in a generic enough way for others to use your solution too</p>

<p>Thanks!</p>
