HTML playing prompt

Source: Internet
Author: User
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> 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.