Dreamweaver CS6 Set Background music method steps:
One, the code specifies the way
1. Code designation means setting the background music directly within the HTML code of the page. In reality, tokens are usually used to implement.
The syntax format for the tag is as follows:
SRC: background music file address;
Loop: Set playback times, loop to 1;
Delay: The delay of playing music;
Volume: The volume of background music;
Balance: The right and left balance of background music.
2. Specific examples:
Create a new HTML blank page
3. Open Code view, enter the code in, see the following figure:
4. According to the conditions in the code input complete, see the following figure:
5. Press F12 to preview it.
However, it is important to note that the inserted music file is small, in order to take care of users with slow speed.
In addition, inserting background music in this way can only be used in IE browser and may not be supported by other browsers.
Second, use the Media plug-in mode to achieve
Media plug-in means the use of Third-party media plug-ins to achieve the background music effect of the page. This feature can be implemented directly in the Dreamweaver toolbar. You can use markup to insert a media plug-in into a Web page when encoding.
The syntax format for the tag is as follows:
SRC: background music address;
Autostart: Setting whether to play automatically;
Loop: Loop Playback
Controls values are shown in the following table:
The specific actions are as follows:
Create a new HTML blank page
Select ' Insert '---' media '---' plugin '
The code view is as follows:
Select the background music file you want to insert
The effect of the following figure:
Some parameters of the plug-in can be set in the ' Properties ' panel
In this way, it should be noted that the problem of plug-ins, some browsers do not have the necessary plug-ins, so the preview can not load normally.