Several methods to insert background music in Dreamweaver
I have received many letters from netizens who like Pacific Internet Academy asking how to insert background music in Dreamweaver. Now let me introduce several methods of inserting background music to you all at once, so that more people can master it.
1. Direct insertion method
1. Open a web page where you need to insert background music, find this command in the menu: Windows -> Behaviors, bring up the "Behaviors" behavior panel, as shown below (Dreamweaver MX panel):
2. Click the “+” button and select the “play sound” command, as shown below:
If this command is highlighted and unavailable, please select the "Show Even For" command in the command drop-down list, and select "IE 4.0" or above in this submenu, because only IE 4.0 or above supports this format. Music insertion method.
3. At this time, the insert file window will pop up. Press the "Browser" button to select the music file. Of course, the music file format must be supported by the browser (such as mid, wav, AIFF, AU)
4. After insertion, a "plugin" plug-in icon will be displayed on the web page, but we still need to make further adjustments. Because Dreamweaver automatically inserts a control code to facilitate our customized activation of background music. But this function is not needed, so delete it. There are two sections of code, as follows:
Code 1.
Code 2.
5. After the insertion is completed, the background music cannot be played automatically at this time. Click the plug-in icon, press the "ctrl + F3" shortcut key to bring up the properties panel, click the "Parameters" button in the lower right corner, and make modifications in the pop-up window. , change the default value of "Value" after the parameter "AutoStart" from "false" to "true" (as shown in the figure below), so as to achieve the effect of background music playing when the page is opened.
We know that music plays for a certain time. If you want it to play repeatedly, you can change the "Loop" parameter value in the picture above to "true".
Several methods to insert background music in Dreamweaver
I have received many letters from netizens who like Pacific Internet Academy asking how to insert background music in Dreamweaver. Now let me introduce several methods of inserting background music to you all at once, so that more people can master it.
6. When we opened the deletion code before, we saw that the HTML mark for inserting music is <EMBED>. In order to give everyone a deeper understanding of it, let’s quote a paragraph from the Pacific Internet Academy->Design Classroom->HTML section. A paragraph from "Language Analysis" introduces the parameters of the <EMBED> tag:
<EMBED> is used to insert various multimedia. The formats can be Midi, Wav, AIFF, AU, etc. Netscape and new versions of IE support it. It has many parameter settings. As follows < EMBED src="your.mid" autostart="true" loop="true" hidden="true" > |
< BGSOUND >: < BGSOUND > is used to insert background music, but it is only applicable to IE and has few parameter settings. As follows < BGSOUND src="your.mid" autostart=true loop=infinite > src="your.mid" |