Add background music to the page

Source: Internet
Author: User

The default value is:

<Bgsound src = "images/music.wma" loop = "-1"/>

 

Insert a background concert into the webpage to make the page sound a lot. However, when using the music background, you must note that the background music cannot be too large. Otherwise, file transmission may become a problem, reducing the attractiveness of webpages.

The embed tag in HTML can be used to insert background music. The syntax rules are as follows:

<Embed src = "music. Mid" autostart = "bool" loop = "N" width = "M" Height = "K">

The following table lists the values and meanings of the preceding Syntax:

The path and file name of the SRC music file;
Autostart true indicates that the video is automatically played after the music file is uploaded. The default value is false (NO)
Loop true is an infinite replay, false is not a replay, and a specific value (integer) is the number of replays
Volume value range: "0-100". Set the volume. The default value is the volume of the system.
Starttime "minute: Second", set the time when the song starts playing, for example, starttime = "", starting from 10th
Endtime "minute: Second", set the end time of the song
Width Control panel width
Height Control Panel height
Controls Control Panel exterior controls = "console/smallconsole/playbutton/pausebutton/stopbutton/volumelever" · normal console size panel
· Small smallconsole panel
· Playbutton: display the playback button
· Pausebutton: display the pause button
· Stopbutton: displays the stop button.
· Volumelever display volume adjustment button

When hidden is set to true, the Panel can be hidden. 

 

 <Embed src = "JS/combine/song1.mid" autostart = "true" loop = "-1" width = "80" Height = "30" volume = "30"> </ embed>

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.