Adding background music with Dreamweaver and making dynamic words

Source: Internet
Author: User
Tags dreamweaver

Add background music

It is very easy to insert background music into Dreamweaver, and here are two ways for you to choose.

1, in the page inconspicuous place to insert an empty layer, and put an ActiveX object in the layer, double-click the object, in the Open dialog box to select a MIDI, WAV and other music files, and then in the Layer Object Properties panel set its visibility as "Hidden (hidden)", When you save changes, press F12 to preview the page and listen to the sound of music.

2, can also use the Dreamweaver "Behaviors (Behavior Editor)", click the "+" button, select the "Play Sound" option, in the pop-up dialog box to select a music file. Try it yourself!

 Make a dynamic text effect

Ordinary text in Dreamweaver is in characters and cannot be an object, that is, some very useful JavaScript events cannot be assigned to text. Because text does not have a specific "tag" like a picture or other control, the text misses a lot of effects. In order to add special effects to text, only the text as a hyperlink to deal with. So that the text becomes the object, you can exert the behavior.

But this brings some unwanted hyperlink properties, such as underscores, and color changes such as hover, visited, and so on. To simply add special effects to text, you can make the text you want to create a hyperlink, and then add the behavior on top of it, and finally we turn the hyperlink into ordinary text. The specific steps are as follows:

Select the text you want to edit, and fill in a few characters in the Link Target box. Select this link, click the window (Windows) → behavior (behaviors), pop-up behavior panel. Press "+" to add the behavior you want, such as play sound. Open the Dreamweaver Hypertext Editor, find this link, change < a> to < Font>, and change </a> to </FONT>. Finally, delete the words "href= ...". Save this page. Press F12 to preview. The results are not bad!

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.