Can anyone tell me how to use HTML so that an animated gif, that only plays once, will play again after another link has been clicked and then the user returns to the original page (using back button)? any help would be great.
Can anyone tell me how to use HTML so that an animated gif, that only plays once, will play again after another link has been clicked and then the user returns to the original page (using back button)? any help would be great.
You mean it doesn't? I would have thought that it would. I'm thinking that it may in some browsers and not in others. Do you have a link to the page?
- John________________________
Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate
yojimbo.pwp.blueyonder.co.uk
and I use firefox so no messing there. Its my first attempt at a web page and its the header graphic that I want to repeat, to match the sound.
I'll try looking at it in IE but surely thats a bad idea?
yeah you were right. It works in IE but not in my firefox. hmm. the sound doesn't match up in IE though, like it does with firefox. Ah well, such is life. Thanks
Yes, I've noticed this. You could try using Javascript to reset the src of the image. That should cause it to play again.
Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!
ok, I've never used javascript but i'll give it a try tomorrow. cheers.
Last edited by swanky; 08-18-2006 at 10:05 PM.
In that case, try something simple, like replacing this:
with this:HTML Code:<H1 Align=CENTER> <IMG SRC="yojimboSign.gif"> </H1> <embed src="electricity.wav" loop="false" autoplay="true" hidden="true"></embed>
HTML Code:<h1 align="center"> <img id="yojimbo" src="yojimboSign.gif"> </h1> <embed src="electricity.wav" loop="false" autoplay="true" hidden="true"></embed> <script type="text/javascript"> document.getElementById('yojimbo').src="yojimboSign.gif"; </script>
- John________________________
Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate
What about flash, I think it would be better, because <embed> takes more time (resources?) to initialize, and, well, flash is more common than just image and sound separately.
Does it not automatically do this on every new click?
... what?What about flash, I think it would be better, because <embed> takes more time (resources?) to initialize
You do realise that using Flash would also involve an <embed> element?
It may be easier, but it's not as well supported.
Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!
Bookmarks