how to play a sound file, when i click a link or button in my web page , I also need place more than one link or button each one have different sound file.
actually i did this using BGSOUND tag it works only in IE,
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Step 1: download the ‘standalone’ version of audio player
Step 2: include player’s JS to your page:
Step 3: setup player and implement functions to embed player for each file:
Step 4: create some element with
id = player(or whatever you’ve specified):Step 5: provide ‘switchers’ for your audio files:
You should end with something like this:
P.S.: here are some docs on player’s options you could pass with
.embed()or.setup()functions