Home Articles FAQs XREF Games Software Instant Books BBS About FOLDOC RFCs Feedback Sitemap
irt.Org
#

Q1225 How can I start and stop the animation of an animated gif?

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>

Feedback on 'Q1225 How can I start and stop the animation of an animated gif?'

©2018 Martin Webb