Insert background music in Web pages

Source: Internet
Author: User

First open my article, enter the editing state, choose HTML format and then you can enter, the following we look at the code, first of all, it is relatively simple:

  <bgsound src= "/blog/" url "" loop=-1>    "url" is still the pathname, loop represents the number of loops, 1 means always loop      See second:   <embed src= "Music.mid" autostart= "bool" loop= "n" width= "M" height= "K" >     the meanings of each of these properties are as follows:    src: Music file path   (below) Autostart: Music files are automatically played after uploading, true to play, false to no   Loop: Set loop true to Auto loop, false to No loop, number of times  width,height for playback Control Panel width and height,  the rest of the properties are:  volume: Value range is "0-100", set volume, The default is the volume of the system itself  starttime: "Minutes: Seconds", set the time the song began to play, such as, starttime= "00:10", starting from the 10th second play  endtime: "Minutes: Seconds", set the end of the song playback time   Controls: Control Panel appearance 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 Volume adjustment button  hidden: True when the panel can be hidden    --The following code is provided by [wind dance]:  background music code streamlined  1, <embed src= "background music url" hidden= "true" autostart= "true" loop= "true" >  --------hidden= "true" means hidden playback, that is, does not show the appearance of the player, To display, replace "true" with theTo "false", so that the default is to minimize playback, if you want to specifically display the size of the player, plus the height= "height value" width= "width value" on it.   -------autostart= "True" indicates that the current page is loaded automatically, if you do not want the playback to autostart= "false"   to ...  ------loop= " True "indicates that the music is played in an infinite number of times until the current page is closed, do not want the loop to be replaced with loop=" false "OK   2, <embed src=" background music url "autostart=" true "loop="-1 "Controls=" ControlPanel "width=" 0 "height=" 0 ">  -----------loop="-1 "means infinite loop playback, can set the number of plays, with specific numbers instead, For example I want it to play two times, then loop= "2"   ---------controls= "ControlPanel" This control option can omit   --------width= "0" height= " 0 "means hide play, as in front.   If you want to set the appearance of the player, replace it with a specific value, such as width= "123" height= "["]   ------------------------------------------ --------  Actually to say the most streamlined code for playing background music, the following code is the simplest--->  <embed src= "background music url" > ---------------- -------------------------------------   In addition: Bgsound src= "background music path" loop= "-1" >   This only supports IE browser, And it is completely downloaded before starting to play, not as in the format described above can be buffered while playing. This is generally used for mid music or smaller mp3,wav format music. If the larger file is the same as the previous format bar ~~ <bgsound src= "background music path" loop= "1" > this withPlayback when the window is minimized, and when the window is maximized, it starts playing again.  , <embed src= "background music url" autostart= "true" loop= "-1" controls= "ControlPanel" width= "0" height= "0" > commonly used in mid,, Wav,mp3 type of music type .    this, regardless of whether or not the minimized window is always played, until the current window is closed ~~   supported music file types: Only support the MP player supported music formats, such as MP3, ASF,WMA,ASX and so on. .  does not support rm,ram....   video file insertion method also as mentioned above, set the appropriate    Music code interpretation  <embed Autostart= "true" loop= "-1" controls= "ControlPanel" width= "0" height= "0" src= "Http://guest.anyp.cn/uploads/01.mid" >  explain:   autostart= "True/false"   whether to play music automatically after the music file is passed. TRUE is to  false is not, the default value is not.    loop= "True/false/integer"   set whether to auto-replay, loop=2 means repeat two times, to be repeated for unlimited times loop= "TRUE"   width and High= "integer"   set width and height of control Panel   controls= "Console/smallconsole/ playbutton/pausebutton/stopbutton/  volumelever "  Set the control Panel appearance, the default value is the console     console general normal panel     Smallconsole smaller panel    playbutton only show play button    pauseButton only displays the pause button    stopbutton only the Stop button    volumelever display the volume adjustment button  

Insert background music in Web pages

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.