Web Hosting Talk







View Full Version : Javascript Replay


Powi
07-04-2005, 12:12 AM
Hi,
I was wondering if there is any way to replay a .gif animation using javascript without having to load the gif again.

Thanks

Powi

Mountain Hosting
07-04-2005, 01:17 AM
One of the advantages of .gif images is the ability to make them 'loop' what program are you using to make the image?

Powi
07-04-2005, 04:31 PM
Hi, thanks for your reply. I know they can loop, i'm using imageready to make it. I just want to replay an image ONLY if a certain javascript event ocures.

Is there any way to do this?

Thanks again.

Powi

michael-lane
07-05-2005, 03:39 AM
i dont think there is, you could just reload the image:
<script>
if(eventoccurs) {
gifname.src="imageurlagain";
}
</script>
this retypes its src url and so refreshes the image live but not the page its a very odd request you could just use flash

Powi
07-05-2005, 01:04 PM
Thanks for your reply, I'll try that.

I can't use flash cause i need the image as a background, i can't use flash as such.

Thanks again.

Powi

michael-lane
07-07-2005, 01:16 PM
you can use flash ever heard of fscommand?