Audio JavaScipt is program language that can manual or automatically play the sound file that you includes on your webpage. Audio JavaScript can make some effects like background music, random music and sound on the button or text link.
Not all computers or browsers can recognise the many different types of sound formats. You therefore need to be careful about which types of sound format you code into your web page.
The most popular sound files used today for Web pages are files that end with an extension of .au (audio format sound file), .wav (Windows wave format sound file), and .mid (Midi format sound file).
To add sound to a Web page you need to:
- Create and encoder a sound file on your PC.
- Add sound HTML/JavaScript code to your web page.
- Upload (FTP) these sound files to your web server.
Here is some of the Audio JavaScript code that you can use on your webpage:
Daily MP3
This code will add mp3 songs to your webpage.
Random Background music
player
Plays a random background music.
Playing Sound Files
This has to be the easiest way a play a sound file, and you get to use JavaScript.
Rollover-Sounds for text links, image links and
menus
Sound is wonderful weapon to enhance the impact of image links, text links and navigation
bars.
Sound-track for
text-links
This JavaScript adds a soundtrack to text links and enhances the effect with a flashing DHTML
animation.
Sound
It will determine which browser they have and print the background sound command correctly for
that browser.
