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?
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?
Isn't that what we call a flash file?
![]()
"Only dead fish flow with the stream".
- Unknown
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!
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..(:
what is still .gif
Hey it works! Thanks a lot insanemonkey!
Very much apperciated
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
YUP no problem-o hehehe your welcome
Hey new design new look, goto xudas for personal webdsign help..(:
Changes are highlighted.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?
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
Thanks a lot. You guys just rock man!!!!!![]()
Bookmarks