JavaScript and client side scripting.
Moderator: General Moderators
JellyFish
DevNet Resident
Posts: 1361 Joined: Tue Feb 14, 2006 7:18 pm
Location: San Diego, CA
Post
by JellyFish » Thu Dec 28, 2006 6:27 pm
If I where to append a image element using appendChild(), and it was a animated gif that doesn't loop, then when the element appends to a new parent node would the image animation restart?
It's a quick question that I could easily answer by discovery but I didn't make the animation yet and that would take a bit.
Thanks for reading. All help is appreciated.
neel_basu
Forum Contributor
Posts: 454 Joined: Wed Dec 06, 2006 9:33 am
Location: Picnic Garden, Kolkata, India
Post
by neel_basu » Sun Dec 31, 2006 7:52 am
The GIF Would Restart If And Only if It has been Reloaded
JellyFish
DevNet Resident
Posts: 1361 Joined: Tue Feb 14, 2006 7:18 pm
Location: San Diego, CA
Post
by JellyFish » Sun Dec 31, 2006 8:12 pm
What would define that? Would appendChild(imgElement) reload the image? Or would I need to take on another method?
neel_basu
Forum Contributor
Posts: 454 Joined: Wed Dec 06, 2006 9:33 am
Location: Picnic Garden, Kolkata, India
Post
by neel_basu » Sun Dec 31, 2006 11:08 pm
JellyFish wrote: Would appendChild(imgElement) reload the image?
Test What You told