Insert background music in Dreamweaver

Source: Internet
Author: User
Tags insert dreamweaver
dreamweaver| Insert 1, Code method

<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 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 <bgsound> tags in the page file between
2, Plug-in method

Download plugin: SOUND.MXP

When you double-click the file after downloading, you can install it directly. You can see a horn icon on the common panel after the installation is complete. 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, press OK to complete.

P.S. My production code is two lines, and the fact only needs one line.

<bgsound src= "Sound/lonely.mp3" loop = "-1" >
<embed src= "Sound/lonely.mp3" hidden= "true" autostart= "true" loop= "true" >
</embed>


3, Direct insertion method

SHIFT+F3 Open the Behaviors panel and select + Play sound

Select the correct browser-supported music files on the OK.

Select the plugin icon in the page, open parameters in the Properties panel, modify the value "false" to "true" after "AutoStart" to achieve the effect of opening the background music on the page.

Finally, I would like to say

If the minimized window Bgsound is paused.
Therefore, in order to ensure the continuity of bgsound, it is recommended to use hidden embed
Specific how to operate see http://cnbruce.com/blog/showlog.asp?cat_id=5&log_id=276



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.