Connecting Tech Pros Worldwide Forums | Help | Site Map

Gif image - don't Loop

Member
 
Join Date: Nov 2007
Posts: 125
#1: Oct 16 '08
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.

joedeene's Avatar
Site Addict
 
Join Date: Jul 2008
Location: US of A
Posts: 587
#2: Oct 16 '08

re: Gif image - don't Loop


Try using loop in your tag?

Expand|Select|Wrap|Line Numbers
  1. <img src="MyGIF.GIF"  loop=infinite>
joedeene
Member
 
Join Date: Nov 2007
Posts: 125
#3: Oct 17 '08

re: Gif image - don't Loop


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
joedeene's Avatar
Site Addict
 
Join Date: Jul 2008
Location: US of A
Posts: 587
#4: Oct 17 '08

re: Gif image - don't Loop


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
acoder's Avatar
Site Moderator
 
Join Date: Nov 2006
Location: UK
Posts: 14,581
#5: Oct 17 '08

re: Gif image - don't Loop


<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.
Reply