How to insert a Web page background music with Dreamweaver

Source: Internet
Author: User
Tags format insert dreamweaver
dreamweaver| Insert | homepage | page background

  This article takes the mid format file and the MP3 format file as an example to teach you how to insert a background music into a Web page.

  1, MID

  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 file and path, can be relative or absolute.

Autostart=true: Does it play automatically after the music file is downloaded? True is, False no (default).

Loop=infinite: Does it automatically play again and again? loop=2 says repeat two times, Infinite means repeat several times.

This method is to directly put the tag on the Web page file ... , set the path of the mid file ok

  2, mp3

<embed src= "1.mp3" autostart= "true" loop= "2" width=300 height=100>

SRC: The path and filename of the music file;

Autostart:true automatically starts playing when the music file is uploaded, the default is False (NO)

Loop:true is an infinite replay, false is not replayed, and a specific value (integer) is replayed many times

Volume: The value range is "0-100", set the volume, default to the volume of the system itself

StartTime: "Minutes: Seconds", set the time the song begins to play, for example, Starttime= "00:10", starting from the 10th play

Endtime: "Minutes: Seconds" To set the time of the song to end playback

Width: Width of Control Panel

Height: Height of Control Panel

CONTROLS: The appearance of the control panel

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 the Volume control button

Hidden: The panel can be hidden when true

Other code to play music with the player please see the video recording network other technical articles!



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.