The default value is:
<Bgsound src = "images/music.wma" loop = "-1"/>
Insert a background concert into the webpage to make the page sound a lot. However, when using the music background, you must note that the background music cannot be too large. Otherwise, file transmission may become a problem, reducing the attractiveness of webpages.
The embed tag in HTML can be used to insert background music. The syntax rules are as follows:
<Embed src = "music. Mid" autostart = "bool" loop = "N" width = "M" Height = "K">
The following table lists the values and meanings of the preceding Syntax:
The path and file name of the SRC music file;
Autostart true indicates that the video is automatically played after the music file is uploaded. The default value is false (NO)
Loop true is an infinite replay, false is not a replay, and a specific value (integer) is the number of replays
Volume value range: "0-100". Set the volume. The default value is the volume of the system.
Starttime "minute: Second", set the time when the song starts playing, for example, starttime = "", starting from 10th
Endtime "minute: Second", set the end time of the song
Width Control panel width
Height Control Panel height
Controls Control Panel exterior controls = "console/smallconsole/playbutton/pausebutton/stopbutton/volumelever" · normal console size panel
· Small smallconsole panel
· Playbutton: display the playback button
· Pausebutton: display the pause button
· Stopbutton: displays the stop button.
· Volumelever display volume adjustment button
When hidden is set to true, the Panel can be hidden.
<Embed src = "JS/combine/song1.mid" autostart = "true" loop = "-1" width = "80" Height = "30" volume = "30"> </ embed>