X-Git-Url: http://id.pley.net/sound.git/blobdiff_plain/b742b684ca931de2f906a0c24ee773d7c7dfad0a..45ddec7e27af3ded3ebb81d2d2200e6331deb8f1:/sound.html diff --git a/sound.html b/sound.html index 82020e6..6f0a1f6 100644 --- a/sound.html +++ b/sound.html @@ -27,7 +27,7 @@ function onload() { sound = new Sound(); sound.src = 'Coin.wav'; - sound.play(); + sound.autoplay = true; sound.addEventListener('ended', eventLogger); sound.addEventListener('play', eventLogger); sound.addEventListener('pause', eventLogger); @@ -49,6 +49,7 @@ +