Dreamweaver CS6 How to set a background music in what way

Source: Internet
Author: User
Tags set background blank page dreamweaver

  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.

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.