Click to See Complete Forum and Search --> : Link sound


Justin
07-21-2003, 06:11 AM
is there a script that can play a few second sound when the link is clicked? call the sound lsound.wav

Mr J
07-21-2003, 08:01 AM
Please try the following

<script language="javascript">
<!--
function playme(your_sound){
document.getElementById('my_ID').src=your_sound
setTimeout("stopme()",3000)
}

function stopme(){
document.getElementById('my_ID').src=""
}
// -->
</script>

<BGSOUND ID="my_ID">

<a href="#null" onclick="playme('your_sound1.mid')">Sound 1</a>

Justin
07-21-2003, 04:31 PM
it is exactly what i needed