Image Append.

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
User avatar
JellyFish
DevNet Resident
Posts: 1361
Joined: Tue Feb 14, 2006 7:18 pm
Location: San Diego, CA

Image Append.

Post by JellyFish »

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.
User avatar
neel_basu
Forum Contributor
Posts: 454
Joined: Wed Dec 06, 2006 9:33 am
Location: Picnic Garden, Kolkata, India

Post by neel_basu »

The GIF Would Restart If And Only if It has been Reloaded
User avatar
JellyFish
DevNet Resident
Posts: 1361
Joined: Tue Feb 14, 2006 7:18 pm
Location: San Diego, CA

Post by JellyFish »

What would define that? Would appendChild(imgElement) reload the image? Or would I need to take on another method?
User avatar
neel_basu
Forum Contributor
Posts: 454
Joined: Wed Dec 06, 2006 9:33 am
Location: Picnic Garden, Kolkata, India

Post by neel_basu »

JellyFish wrote:Would appendChild(imgElement) reload the image?
Test What You told
Post Reply