<embed SRC="bird.wav" HIDDEN=true AUTOSTART=false NAME=bird>
This command embeds [or links up] the sound in the bird.wav file into your site and names it bird. Now add a place to click on and play your link:
<a href="#" onClick=document.bird.play()> Bird sound </a> <BR>
The "#" means there really is no site to go to but you can still use the onClick event. The command document.bird.play() plays the sound clip named bird.
Here's a web page with two sounds
| <html><head>
<embed SRC="bird.wav" HIDDEN=true AUTOSTART=false NAME=bird> <embed SRC="cat.wav" HIDDEN=true AUTOSTART=false NAME=cat> </head><body> <a href="#" onClick=document.bird.play()> Bird sound </a> <BR> <a href="#" onClick=document.cat.play()> Cat sound </a> </body></html> |
Bird sound
Cat sound Click on the words to hear... |
The autostart=false means the sounds do not play when the page is loaded. Leave out autostart=false and the sound will play when the page is loaded. Now you will need to download sounds from the internet or create your own using a mike and your computer. You plug a mike into the sound card at the back of the computer or the mike is not built inot the computer. Now you click on Start.
| YOU can create your own sounds:
Your PC most likely has a sound recorder program and a mike built into the monitor. To record a sound you use the recorder program in Windows. See the first figure to run the program. |
Where to find the sound recorder
![]() |
| See instructions for recording a sound and saving it as a .wav file!
Wave files are user-friendly and work well with Netscape. The recorder lets you: *clip dead space from the beginning or end of a recording, *add echo to your sound, *mix the sound with another file, *insert another sound file in the present sound. |
It has buttons like a recorder
![]() |
This page is Copyright 2002 by J. Barry DeRoos. All Rights Reserved.
This page may be distributed and used freely, provided that the
copyright notices remain intact.
Last Modified: Nov 19, 2002.