By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,729 Members | 1,487 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,729 IT Pros & Developers. It's quick & easy.

Gif image - don't Loop

100+
P: 144
hi,

how to display a gif image, in HTML but when it reaches the the last frame, it stops. don't loop the animation.


thank you.
Oct 16 '08 #1
Share this Question
Share on Google+
4 Replies


joedeene
100+
P: 583
Try using loop in your tag?

Expand|Select|Wrap|Line Numbers
  1. <img src="MyGIF.GIF"  loop=infinite>
joedeene
Oct 16 '08 #2

100+
P: 144
hi,

thanks for the reply.

i've tried the loop attribute, but what should i use as the value of the attribute?
i've tried with infinite and -1, 0 or 1. but still it repeats the animation.

thanks
Oct 17 '08 #3

joedeene
100+
P: 583
Oh, I apologize I misread your first question, so you do not want the loop? Well you would use Loop=False. Take a look of these HTML LOOP Snippets. Let me know if that works...

joedeene
Oct 17 '08 #4

acoder
Expert Mod 15k+
P: 16,027
<embed> is non-standard as is the loop attribute for the img tag. I wouldn't advise its use. I don't know if GIF can support this. You could look at other formats or possibly Flash or JavaScript.
Oct 17 '08 #5

Post your reply

Sign in to post your reply or Sign up for a free account.