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!