HTML5 Add a page background music a customer asked to add a background music to the site, I use the HTML5 to add the page background music code, in this record later useful. HTML5 method One: <audio autoplay= "" loop= "" ><source src= "Http://mi.0w0.im/Letter_Song.mp3
></audio> does not show the player. HTML5 method Two: <video controls= "" autoplay= "" name= "Media" ><source src= "I Am Music" type= "Audio/mpeg" ></video > will display the player. Method Three: Support all players: <embed src= "/uploadfile/m.mp3" autostart= "true" loop= "true" hidden= "true" ></embed> this method I am using. Method Four: <bgsound src= background music address loop=-1> I use the code of method three, support all browsers, methods 1 and 2 are HTML5 code, and some browsers do not support HTML5 so use caution. Special attention is the use of Method 3 code, it is best to upload mp3 to their own space, online looking for the outside chain, may appear automatically download the situation.
12, HTML5 hidden player play background music