Don't use bgsound
Use an embed tag
<embed src="soundfilenamehere" id="sound" name="sound" loop=false autostart="true" width="0" height="0" hidden align="center">
- and wrap your input tags in a form tag
| Hi Brandy,
| I don't know whether this will help or not.
|
| I am having trouble playing audio also, but I can get this to work in IE6.
|
| In the HTML
| <bgsound src="#" id="sound" loop=false autostart=true>
| <input type="button" value="Play
Music" onClick="playSound()">
| <input type="button" value="Stop
Music" onClick="stopSound()">
|
| In JS
| function playSound()
| { document.getElementById("sound").src = "minuet.wav"}
| function stopSound()
| { document.getElementById("sound").src = "" }
|
| Clicking on "Play Music" starts the audio file "minuet.wav".
| Clicking on "Stop Music" stops the file.
|
| I only wish it would work in FireFox. I think I need an <embed> tag, but I
| haven't succeeded yet.
| --
| Cheers,
| Trevor L.
| Website:
http://tandcl.homemail.com.au
|
| Brandy wrote:
| > I'm having a little difficulty getting my design to hyperlink and
| > play an audio sample. Any help is very greatly appreciated. Thanks.
|
|