]> id.pley.net Git - sound.git/blobdiff - sound.html
Add a media picker.
[sound.git] / sound.html
index 67b4059a7a4443e54a2dba2bd110d694558aae5e..1c133e57974fc348ac450bdc4f1f67722d89fcd8 100644 (file)
        </script>
 </head>
 <body onload="onload()">
-
+       <div>
+               <select onchange="audio.src = event.target.value">
+                       <option value="Coin.wav">Coin.wav</option>
+                       <option value="Overworld.mp3">Overworld.mp3</option>
+               </select>
+       </div>
        <div>
                <button onclick="audio.play()">play</button>
                <button onclick="audio.pause()">pause</button>