Different Ways to Include Sounds and Movies in A Web Page


1. Embedding Sounds.

The following HTML code embeds a WAV sound into a web page so a console displays in the web page and it is played as the web page loads. The sound does not open in its own new window. The WAV file airwolf.wav is stored in a folder named sounds. The folder sounds is at the same level as this web page. This same code works with midi sound files that have an mid extension. Simply substitute the name airwolf.mid for airwolf.wav if you have the sound in both formats.

<embed src = "sounds/airwolf.wav" autostart ="true" volume = 100 controls = "smallconsole"></embed>

The sound console is seen immediately below this text.

 

The following HTML code embeds an MP3 sound into a web page so a console displays in the web page and it is played as the web page loads.

<embed src = "COPS.mp3" autostart ="true" volume = 100 console = "smallconsole"></embed>

Here are some references for coding embedded sounds:


Embedding Movies.

The following HTML code embeds a movie into a web page so a movie window and console displays in the web page and it is played as the web page loads. The movie does not open in its own new window. The movie file RedSong2.mov is stored in a folder named movies. The folder movies is at the same level as this web page. Embedding movies is usually only done when the movie is relatively small, becuase it takes a lot longer for the web page the movie is embedded in to load.

<embed src = "movies/RedSong2.mov" autostart ="false" volume = 100 controls = "smallconsole"></embed>

 


Linking to Movies.

No HTML code neede here. Just type the text that will be a link and use the link field in the properties window of DreamWeaver to link to the movie. The movie will load in a new blank web page. Linking to movies is generally better, because if the movies are very large and they are embedded, then it may take a long time for page to load on the screen. With links, the person clicks the link knowing that they want to take the time to load the movie and view it.

Click here to see the RedSong movie.


Click here to find some Free WAVs

Back to Top