<class home>  <dreamweaver part II>   <back   next>

Inserting and Playing Media

Embedding Sound Files:

1. Open the page that you want the sound in.

2. Click the place in the page where you want a sound controller to appear (you don't have to have the controller appear).

3. View the html source code and type in:
<embed src="sounds/mysound.wav" autoplay="TRUE" hidden="TRUE"></embed>

4. Save the page.

5. Preview in Browser.

*note: Explorer before version 4.0 will not support the embed tag, you will need to use also the <bgsound> tag in the body section of your page.
example: <BODY bgsound src="lbd.mid" loop="infinite" autoplay="true" volume=0>

*note2: there is a <noembed></noembed> tag for inserting text for older browsers that will not embed content.

*note3: IMPORTANT
In order for the controller to appear properly, add 16 pixels to the height of a movie.


example>>>

<html>
<head>
<title>Birthday</title>
</head>
<BODY bgsound src="lbd.mid"; loop="infinite"
autoplay="true" volume=0
>
This page has an embedded sound file.
<embed src="lbd.mid" autoplay="TRUE" hidden="TRUE"></embed>
</body>
</html>


Other types of Controllers: Tiny

example>>>

<html><head><title>embed sound</title></head>
<body>
<H1>Using tiny controls</H1>
<EMBED SRC="bondia.wav" CONTROLS="playbutton" WIDTH=25 HEIGHT=25 autostart=false>
</embed>
"Bon Dia"<br>
<br>
<EMBED SRC="patom.wav" CONTROLS="playbutton" WIDTH=25 HEIGHT=25 autostart=false>
</embed>
"Pa amb tom&agrave;quet"<br>
<br>
<EMBED SRC="visca.wav" CONTROLS="playbutton" WIDTH=25 HEIGHT=25 autostart=false >
</embed>
"Visca Catalunya"
</body></html>