What exactly do you want? Do you want to have background music for your page that continually loops through those three sounds? Or do you want to play the sounds on a link click? Do you want to play each sound once only or have it continually play them 3 at a time?
It is possible to do this, and I can show you how after getting some more info, but why don't you just combine the sound files in to one file?
You can download cooledit from here if you don't have a sound file editing program:
Ok. Here is one way to do it with javascript, but beware that wav files take a long time to load on a dialup connection:
<html>
<script>
<!--
function play(i){
var sounds = new Array("sound1.wav","sound2.wav","sound3.wav"//names of the files
var times = new Array("5","10","23"//length of the file in seconds
document.getElementById("bg_sound".src=sounds;
if(i<sounds.length){
i++;
setTimeout('play('+i+')',times[i-1]*1000 + 1000);//the length (in miliseconds) of the last song + 1
//second padding before playing the next sound
}
}
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.