I am making a game in an HTML web page. How would I add music to this game?
+1
A:
Try this
<embed src="success.wav" autostart=false loop=false>
You may use javascript also
function func1() {
document.all.sound.src = "sound.wav"
}
window.onload=func1;
alejandrobog
2010-06-02 23:02:55
Is there anyway for it to play without showing a Music Player? This is for a game. I need it to just play.
Henry D'Andrea
2010-06-02 23:07:27
<embed src="nice music tone.mp3" autostart="true" loop="true" hidden="true">
Henry D'Andrea
2010-06-02 23:10:32
You may use javascript alsofunction func1() { document.all.sound.src = "sound.wav"} window.onload=func1;
alejandrobog
2010-06-02 23:12:26
Is there any code that can be run on Canvas or HTML5 audio Tag? This is for a Mobile Phone game.
Henry D'Andrea
2010-06-04 14:41:43
Is there anyway for it to play without showing a Music Player? This is for a game. I need it to just play.
Henry D'Andrea
2010-06-02 23:06:56