You are here: irt.org | FAQ | JavaScript | Image | Q1225 [ previous next ]
Try:
<img name="myAnim" src="running.gif" width=200 height=100 alt="Animation"> <form> <input type="button" onClick="if (document.images) document.images['myAnim'].src='stopped.gif' value="stop"> <input type="button" onClick="if (document.images) document.images['myAnim'].src='running.gif?'+random() value="start"> </form>