views:

58

answers:

2

Hi, Is it possible to use javascript to control which frame of a gif image is showing / stop animation. I want to be able to load a gif with several frames and only show one of them. I know I could do it with lots of seperate images, but if I can do what i want with a gif, it will only be one file to worry about.

Thanks,

Logan

+1  A: 

No, it is not possible. You won't be able to do image manipulation like this using javascript.

rahul
+2  A: 

You can do it with a single image using CSS sprites.

N 1.1
This is true so long as what one wants to do is split up different variations of an image around the 2D plane, and not to split it up as separate frames.
Pointy