ThatRickGuy
Programmer
Hi Guys,
I was using the following code to attempt to give my users access to a sound file on my web server. The problem I ran into is that the the 'Stop' button will correctly stop the wav file, but the 'Play' button will not re-start the audio.
Thoughts?
-Rick
VB.Net Forum forum796 forum855 ASP.NET Forum
I believe in killer coding ninja monkeys.![[monkey] [monkey] [monkey]](/data/assets/smilies/monkey.gif)
I was using the following code to attempt to give my users access to a sound file on my web server. The problem I ran into is that the the 'Stop' button will correctly stop the wav file, but the 'Play' button will not re-start the audio.
Thoughts?
Code:
<BGSOUND id='WucAudio1' name='WucAudio1' SRC='C:\WINDOWS\Help\Tours\WindowsMediaPlayer\Audio\Wav\wmpaud7.wav' VOLUME='0' BALANCE='0' LOOP='0' />
<script language=javascript>var BGWucAudio1=document.getElementById('WucAudio1');</script>
<INPUT type='button' style='font-family:Webdings;' value='4' title='Play' onClick="BGWucAudio1.src='C:\WINDOWS\Help\Tours\WindowsMediaPlayer\Audio\Wav\wmpaud7.wav'">
<INPUT type='button' style='font-family:Webdings;' value='<' title='Stop' onClick="BGWucAudio1.src=''">
-Rick
VB.Net Forum forum796 forum855 ASP.NET Forum
![[monkey] [monkey] [monkey]](/data/assets/smilies/monkey.gif)
![[monkey] [monkey] [monkey]](/data/assets/smilies/monkey.gif)