Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Flash getURL call to js, freezes animated .gifs on html? 2

Status
Not open for further replies.
To restart an animation, you could try this:

Code:
document.images["imageName"].src = document.images["imageName"].src

Adam

recursion (n.) See recursion.
 
Besides changing the image name to your own, yes.

Adam

recursion (n.) See recursion.
 

If you have many images, you could use this to save a lot of typing:

Code:
var imgs = document.getElementsByTagName('img');
for (var loop=0; loop<imgs.length; loop++) imgs[loop].src = imgs[loop].src;

Hope this helps,
Dan


The answers you get are only as good as the information you give!

 
Thanks to both of you, it does work... somewhat.

Animated .gifs do at least re-start, but from the beginning and not from where they were...

Anyone have an explanation for this? A text link or button in the html, calling the same function, doesn't have this effect on animated gifs, so why does the getURL from the Flash object cause it?

Thanks again.

Regards. Affiliate Program - Web Hosting - Web Design
 

You might try asking in the Flash forum to see if anyone there has heard of this issue before.

Hope this helps,
Dan


The answers you get are only as good as the information you give!

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top