HTML thorough analysis (12) Multimedia

Source: Internet
Author: User
Tags insert integer relative
Media

Multimedia

  <BGSOUND>
  <EMBED>

To understand this "HTML thorough analysis" of the mark classification, please see " Mark List ".
Please also understand the distinction between containment and empty tags, see "HTML concept ."

 
<bgsound>:

  <BGSOUND> 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 files and paths that can be relative or absolute.
  • autostart=true
    Whether it will play automatically after the music file has been downloaded. True is, False no (default).
  • Loop=infinite
    Whether to play it again and again automatically. loop=2 says repeat two times, Infinite means repeat several times.
 
<embed>:

Embed> is used to insert a variety of multimedia, format can be Midi, Wav, AIFF, AU and so on, Netscape and the new version of IE are supported. Its parameters are set more. The following

<embed src= "Your.mid" autostart= "true" loop= "true" hidden= "true" >

  • src= "Your.mid"
    Set MIDI files and paths that can be relative or absolute.
  • autostart=true
    Whether it will play automatically after the music file has been downloaded. True is, False no (default).
  • Loop= "true"
    Whether to play it again and again automatically. loop=2 says repeat two times, true Yes, false No.
  • HIDDEN= "true"
    Whether to completely hide the control screen, True is, no is no (default).
  • starttime= "min: sec"
    Set the time when the song starts to play. such as starttime= "00:30" indicates that playback starts at 30th seconds.
  • VOLUME= "0-100"
    Set the volume size, which is between 0 and 100. The default is to use the system itself settings.
  • 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 side text, which can be top, bottom, center, baseline, left, right, Texttop, middle, absmiddle, absbottom
  • CONTROLS= "Smallconsole"
    Sets the appearance of the control Panel. The preset value is the console.
    Console General normal panel
    Smallconsole smaller panel
    PlayButton Show only play buttons
    Pausecutton Only Show pause button
    Stopbutton Show Stop button only
    Volumelever only show volume adjustment press


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.