Playing a WAV file from a Web Page

  • Thread starter Thread starter Andrew Chalk
  • Start date Start date
A

Andrew Chalk

Can anyone point me to some code that allows the user to play a WAV file by
clicking on a link.

Many thanks.
 
Well, simply linking to the .wav file will work for most users. All they
need is a program, like QuickTime associated with the wav extension.

You can check out:
http://www.fluffbucket.com/html/sound.htm

<a onclick="self.location='myfile.wav'; return false" href="#">Click here to
play</a>

Karl
 
OK. Now if the user clicks on a button that causes a search of a database
for the file name how can my web site then play the file to them?

Many thanks,

Andrew
 
OK. Now if the user clicks on a button that causes a search of a database
for the file name how can my web site then play the file to them?

Create a literal object and then output the HTML text in it as mentioned
previously, substituting in the .wav file name.
 
Thanks!

Stimp said:
Create a literal object and then output the HTML text in it as mentioned
previously, substituting in the .wav file name.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Back
Top