View Full Version : Conflict between JS and Animated Gifs

03-22-2009, 09:57 PM
Hi guys,
I have created a transparent animated header usig flash cs3 which loops continiously. flash has automaticaly created a javascript link to this animation. I also have some animated gifs on my html body. for some reason the animated gifs freezes every few seconds. I also noticed that if i remove the javascript link from the head of html all the animated gifs works fine but ofcourse the header animation does'nt. Is there any way i can resolve this issue so that all animations works fine? Please help.

03-23-2009, 08:04 AM
Post a link to your site.

03-23-2009, 11:07 AM
Hi, sorry for the late reply. for some reason it works fine now. it only happened in IE. I realy dont know whats happening with it. But nice to know some feed back in case if it happens in the future. yesterday when it happened I tried something different and it worked OK. all I did was took the javascript out from the head tag and inserted it in the DIV tag where the flash animation is. and it all worked fine. So now my question is, Is it ok to put
<script type="text/javascript" src="Scripts/AC_RunActiveContent.js"></script>
under a div tag rather than under the head.

I am new to all this so any advise will help me in future.

the link to my site is:

thanks again

03-24-2009, 08:46 AM
Its okay, its there so its available when the page loads. Sometimes depending the script the element needs to exist before the javascript can even work. The script you are using waits until the page has loaded before it starts running. I can't load your site.

03-24-2009, 04:47 PM
ok I get it. Why you can't load my site. the link is the same and it works. Thanks for your help.