Audio Sample Widget
I'd like to add a link or widget to provide the ability for a pop-up to play an audio sample from the catalog item we display. Is there any way to do this?
I'd like to add a link or widget to provide the ability for a pop-up to play an audio sample from the catalog item we display. Is there any way to do this?
You can use an <audio> object to put a sound on your page and then play it with javascript. I found this on the web:
<script>
function play() {
var audio = document.getElementById("audio");
audio.play();
}
</script>
<input type="button" value="PLAY" onclick="play()">
<audio id="audio" src="youraudiofile.mp3"></audio>
Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.
These out-of-the-box solutions provide you proven, tested applications that can be up and running now. Build a store, a gallery, or a web-based email solution.