dreamweaver| Insert | homepage | page background
This article takes the mid format file and the MP3 format file as an example to teach you how to insert a background music into a Web page.
1, MID
is used to insert background music, but only applies to IE, its parameters are not set much. As follows:
<bgsound src= "Your.mid" Autostart=true loop=infinite>
Src= "Your.mid": Set MIDI file and path, can be relative or absolute.
Autostart=true: Does it play automatically after the music file is downloaded? True is, False no (default).
Loop=infinite: Does it automatically play again and again? loop=2 says repeat two times, Infinite means repeat several times.
This method is to directly put the tag on the Web page file ... , set the path of the mid file ok
2, mp3
<embed src= "1.mp3" autostart= "true" loop= "2" width=300 height=100>
SRC: The path and filename of the music file;
Autostart:true automatically starts playing when the music file is uploaded, the default is False (NO)
Loop:true is an infinite replay, false is not replayed, and a specific value (integer) is replayed many times
Volume: The value range is "0-100", set the volume, default to the volume of the system itself
StartTime: "Minutes: Seconds", set the time the song begins to play, for example, Starttime= "00:10", starting from the 10th play
Endtime: "Minutes: Seconds" To set the time of the song to end playback
Width: Width of Control Panel
Height: Height of Control Panel
CONTROLS: The appearance of the control panel
Controls= "console/smallconsole/
Playbutton/pausebutton/stopbutton/volumelever "
console: Normal size panel
smallconsole: Smaller panel
PlayButton: Show Play button
Pausebutton: Show Pause button
Stopbutton: Show Stop button
Volumelever: Display the Volume control button
Hidden: The panel can be hidden when true
Other code to play music with the player please see the video recording network other technical articles!