How to insert background music in Dreamweaver

Source: Internet
Author: User
Tags format insert relative window dreamweaver
Dreamweaver| inserted many times to receive a love of the Pacific Network College users of letters, the letter asked how to insert background music in the Dreamweaver, now let me introduce a few background music to the insertion method, so that more people to master it.

   first, the direct insertion method
1. Open a page that needs to be inserted into the background music, and find the command in the menu: Windows-> Behaviors, bring up the "behaviors" behavior panel, as shown in the following figure (Dreamweaver MX Panel):

2. Click the "+" button, select "Play Sound" command.

If this command is anti-white and is not available, select the show even for command in the Drop-down list in this command, and select "IE 4.0" in this submenu, as the above version of IE 4.0 supports the music insertion method in this format.
3. At this point pop-up Insert File window, press the "Browser" button to select music files, of course, to the browser to support the music file format (such as Mid, WAV, AIFF, AU).
4. After insertion, a "plugin" plugin icon appears in the Web page, but we need to make further adjustments. Because Dreamweaver automatically inserts a piece of control code to facilitate our custom activation of the background music. But this feature does not need to use, then it is necessary to delete it. The code has two paragraphs, respectively, as follows:
Code One,

Code two,

5. Complete insert, at this time the background music can not play automatically, click the plug-in icon, press the "CTRL + F3" shortcut keys, the property panel, click the lower right corner of the "Parameters" button, in the pop-up window to modify the parameters "AutoStart" after the "value" default "False" is changed to "true" (as shown in the following illustration), so that the effect of opening the background music on the page is reached.

6. Before opening the deletion code we saw the HTML tag for the insert music as < EMBED >, in order to let you have a more in-depth understanding of it, then introduce the < EMBED > tag parameters:
< 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. As follows:
< 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= "Minutes: Seconds"
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= "integers" and high= "integers"
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 displays the volume adjustment button

   second, code law
< 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.
This method is to directly put < BGSOUND > tags in the Web page file < head >
   third, the plug-in method
Some people never abandon FrontPage perhaps because in some elements of the insertion, Dreamweaver does not provide functionality, or inconvenient. But we know that the Dreamweaver support plugin, the sound insertion plug-in provides us with convenience.
Plugin Name: SOUND.MXP
After downloading, double-click the file, you can install it directly, installation complete you can see a horn icon in the "Common" column of the "Objects" panel. Click on this button to eject the Insert window as shown in the following illustration:

Forever: Set infinite loop playback
Never: Do not cycle playback, that is, play only once
NO times: Set the number of plays
Click the "Browser" button to select a good sound file, as determined to complete the production.

After learning the above three ways, it is much easier to insert background music later.

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.