You can use the <bgsound> and <embed> </embed> labels to hide the player by setting the width and height to 0 when <embed> is used to insert background music. ■ <Bgsound>:
<Bgsound> it is used to insert background music, but only applies to IE. There are not many parameter settings. As follows:
<Bgsound src = "Your. Mid" autostart = true loop = infinite>
Src = "Your. Mid"
Set the MIDI file and path, which can be relative or absolute.
Autostart = true
Whether to play the video automatically after the music file is downloaded. True: Yes; false: No (internal value ).
Loop = infinite
Whether to enable automatic replay. Loop = 2 indicates repeated twice, infinite indicates repeated multiple times, and-1 indicates permanent repetition.
■ <Embed>:
<Embed> is used to insert various multimedia files. The format can be Midi, WAV, AIFF, AU, and so on. Netscape and the new version of IE support. There are many parameter settings. Below
<Embed src = "Your. Mid" autostart = "true" loop = "true" hidden = "true">
Src = "Your. Mid"
Set the MIDI file and path, which can be relative or absolute.
Autostart = true
Whether to play the video automatically after the music file is downloaded. True: Yes; false: No (internal value ).
Loop = "true"
Whether to enable automatic replay. Loop = 2 indicates Repeat twice, true is, false is not.
Hidden = "true"
Whether the control screen is completely hidden. True indicates yes, and no indicates no (inner ).
Starttime = "minute: second"
Set the start time of the song. For example, starttime = "" indicates that playback starts from 30th seconds.
Volume = "0-100"
Set the volume. The value ranges from 0 to 100. The internal setting is to use the system itself.
Width = "integer" and high = "integer"
Set the height and width of the control panel. (If hidden = "no ")
Align = "center"
Sets the alignment of the control panel and text next to it. The values can be top, bottom, center, baseline, left, right, texttop, middle, absmiddle, and absbottom.
Controls = "smallconsole"
Set the control panel appearance. The default value is console.
Normal console panel
Small smallconsole panel
Playbutton only displays the play button
Pausecutton only displays the pause button
Stopbutton: only show the stop button
Volumelever only displays the volume adjustment button
Simple sample code:
<! Doctype HTML public "-// W3C // dtd html 4.01 transitional // en"> <HTML>