helloi need help with this
<p><embed width="128" height="128" src="http//:www. etc"></p>
its a plug in using front page, it will be a link to some race car sounds i want on my web site BUT i only want it to play once per visitor?can you help?pete
Have you tried the html5 audio tag with autoplay?
not sure what that is can someone just give me the html i needthanks
Could you provide the full embed code?
<p>embed width="128" height="128" src="http://www.angelfire.com/ga2/petergiles/images/aston.mp3"></p>
<audio src="http://www.angelfire.com/ga2/petergiles/images/aston.mp3" autoplay>
Your browser does not support the <code>audio</code> element.
Doesn't that play just once anyway by default?
Or did you mean you want to remember the visitor and then not play the sound again when they re-visit? (Would need cookies and a script).
It does, but with player controls, which I had understood that the OP didn't want.
It is also worth pointing out that not all browsers can play mp3 files (for example FireFox and Opera)
I know nothing about audio files but I notice that both the above methods play in Firefox but only the audio tag version doesn't play in Opera.
Ah sorry, I meant the FF 3.5 branch.FF otherwise supports the mp3 format as of v21 (but on Windows only).
I just double checked, it seems I was wrong about Opera:
what i want is for the sound to play when a visitor comes to the page, but as i have several pages on my site i do not want it to play again if they go back to the same page, after they go and if they come back it can play again
This topic is now closed. New replies are no longer allowed.