how can I play a sound clip on page load?Is there any javascript or jquery to do that?I am creating my page in php.
A:
you can pull this off with straight html
http://www.webreference.com/js/column20/bgsound.html
or
http://www.htmlcodetutorial.com/sounds/_BGSOUND.html
I think wav, mid, and mp3 are supported
CheeseConQueso
2010-07-29 12:33:30
+2
A:
Through simple HTML.
<object>
<param name="autostart" value="true">
<param name="src" value="sound.mp3">
<param name="autoplay" value="true">
<param name="controller" value="true">
<embed src="sound.mp3" controller="true" autoplay="true" autostart="True" type="audio/mp3" />
</object>
Brad F Jacobs
2010-07-29 12:33:49
A:
You can also combine the answers from premiso and CheeseConQueso with HTML5 audio tag: https://developer.mozilla.org/en/using_audio_and_video_in_firefox
dark_charlie
2010-07-29 12:41:56