Results 1 to 10 of 10

Thread: Play/ stop Gif

  1. #1
    Join Date
    Nov 2006
    Posts
    116
    Thanks
    6
    Thanked 0 Times in 0 Posts

    Default Play/ stop Gif

    Is there anyway to HAve a gif file in stop mode when it's loaded and than a button to play it and pause it?

  2. #2
    Join Date
    May 2006
    Posts
    259
    Thanks
    4
    Thanked 1 Time in 1 Post

    Default

    Isn't that what we call a flash file?

    "Only dead fish flow with the stream".
    - Unknown

  3. #3
    Join Date
    Nov 2006
    Posts
    116
    Thanks
    6
    Thanked 0 Times in 0 Posts

    Default

    hi Jack,

    I have two animated files. one is a .swf and the other is a .gif
    I have the controls for the .swf file but i want to know how to control the .gif file?

    I guess the user needs flash player to view the .swf file but a gif file can be viewed in the browser.
    Please correct me if i'm wrong!

  4. #4
    Join Date
    Oct 2005
    Posts
    255
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    Try this... but you are going to have to make a stop gif and a start gif... kinda wierd but... try this out.. maybe it might work...

    Code:
    The image you want to change -
    <img src="still.gif" id="gif1" alt="image" />
    
    The start image -
    <a href="#" onclick="document.getElementById('gif1').src='moving.gif'"><img src="start.gif" alt="play animation" /></a>
    
    The stop image -
    <a href="#" onclick="document.getElementById('gif1').src='still.gif'"><img src="stop.gif" alt="stop animation" /></a>
    Hey new design new look, goto xudas for personal webdsign help.. (:

  5. #5
    Join Date
    Nov 2006
    Posts
    116
    Thanks
    6
    Thanked 0 Times in 0 Posts

    Default

    what is still .gif

  6. #6
    Join Date
    Nov 2006
    Posts
    116
    Thanks
    6
    Thanked 0 Times in 0 Posts

    Default

    Hey it works! Thanks a lot insanemonkey!
    Very much apperciated

  7. #7
    Join Date
    Nov 2006
    Posts
    116
    Thanks
    6
    Thanked 0 Times in 0 Posts

    Default

    Just one last question. When I click on the play and stop buttons, it takes me to the top of the page! what can do to stay on the same section?

    Thanks a lot. you guys are just too much

  8. #8
    Join Date
    Oct 2005
    Posts
    255
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    YUP no problem-o hehehe your welcome
    Hey new design new look, goto xudas for personal webdsign help.. (:

  9. #9
    Join Date
    May 2006
    Location
    Sydney, Australia - Near the coast.
    Posts
    1,995
    Thanks
    0
    Thanked 8 Times in 7 Posts

    Default

    Just one last question. When I click on the play and stop buttons, it takes me to the top of the page! what can do to stay on the same section?
    Changes are highlighted.

    Code:
    The image you want to change -
    <img src="still.gif" id="gif1" alt="image" />
    
    The start image -
    <a href="#" onclick="document.getElementById('gif1').src='moving.gif'; return false"><img src="start.gif" alt="play animation" /></a>
    
    The stop image -
    <a href="#" onclick="document.getElementById('gif1').src='still.gif'; return false"><img src="stop.gif" alt="stop animation" /></a>
    Peter - alotofstuffhere[dot]com - Email Me - Donate via PayPal - Got spare hardware? Donate 'em to me :) Just send me a PM.
    Currently: enjoying the early holidays :)
    Read before posting: FAQ | What you CAN'T do with JavaScript | Form Rules | Thread Title Naming Guide

  10. #10
    Join Date
    Nov 2006
    Posts
    116
    Thanks
    6
    Thanked 0 Times in 0 Posts

    Default

    Thanks a lot. You guys just rock man!!!!!

Bookmarks

Posting Permissions

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