Results 1 to 4 of 4

Thread: imgAnimatedGif_onEnd

  1. #1
    Ed Guest

    Default imgAnimatedGif_onEnd

    This might be a little off the wall for an asp forum, but does anyone know any client side javascript that will trigger a function or what not after an animated gif is done looping or after x amount of time?<BR><BR>Basically i want to hide this gif after five seconds.<BR><BR>Thanks in advance,<BR><BR>Ed

  2. #2 Guest

    Default RE: imgAnimatedGif_onEnd

    Look at the Javascript method SetTimeout ... I&#039m sure that this combined with dynamic html ... or even just regular JavaScript might give you what you want.

  3. #3
    omc Guest

    Default RE: imgAnimatedGif_onEnd

    No, you can not detect what is going on with an animated gif. As far as the browser knows it is just an image. <BR><BR>Can&#039t you build that effect into the animation itself. Have it loop 5 times and the last frame is white (or whatever color your background is).

  4. #4
    Ed Guest

    Default Thanks to both

    What I was actually trying to do was have the anim gif hide and another unhide in its place. Otherwise the white background would work. I&#039ll check into the set timeout.<BR><BR>deadlines...stress...aieeee!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts