Home Articles FAQs XREF Games Software Instant Books About Feedback Search Site-Map
irt.org logo

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

irt.org | Knowledge Base | JavaScript | Image | Q1225 [ previous next ]

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

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?'


Provide feedback ...
AddThis Social Bookmark Button

Provide feedback ... AddThis Social Bookmark Button


Last Updated: 30th March 2008. Maintained by: Martin Webb and Michel Plungjan
irt.org liability, trademark, document use, privacy statement and software licensing rules apply.
Copyright © 1996-2008 irt.org, All Rights Reserved.