Rookie learns to play a sound with Dreamweaver MX 2004 behavior (10)

Source: Internet
Author: User
Tags dreamweaver
Dreamweaver

Site original content, reproduced please indicate the source Web page teaching network .

  Play sound

Use the play sound action to play the sound. For example, you might want to play a sound effect each time the mouse pointer slides over a link, or play a music clip while the page is loaded, or click a button to play a sound, and so on.

Note: The browser may need to use some additional audio support (such as an audio plugin) to play the sound. As a result, the effects of different browsers that have different plug-ins are usually different. It's hard to predict exactly how your site's visitors will feel about the sound you provide.

Specific actions:

Insert a button, select the object, and open the Behaviors panel. If you select the following button to open the Behaviors panel, select Play sound from the action. As shown in figure:

Click Browse to select a sound file, or enter a path and file name in the Play sound text box.

Then in the behavior panel you can change our actions, where I choose OnClick, which is the click button to start playing the sound.

Save the page, F12 Preview. Click the button and there will be a sound playing.

Don't forget we are studying! Open the appropriate code view to see the new code in the file, so we can be familiar with the code AH!



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.