Embedding Sound in Web Pages, Part II: An Audio Jukebox - Doc JavaScript
An Audio Jukebox
In our previous column we taught you all about embedding sound in Web pages with Navigator's LiveAudio plug-in, and Explorer's Active Movie Control. In this column, we will show you how to use these ideas in a larger, more comprehensive example: a cross-browser audio jukebox. We found several jukeboxes on the Web, but were unable to find a single cross-browser implementation. We will also introduce a "sliding volume" functionality.
We recommend a sound-enabled browser for this column: LiveAudio for Navigator, or Active Movie for Internet Explorer. If you are using Navigator, make sure Java is enabled (select Preferences from the Edit menu). If you're not fully equipped, keep reading to find out how we created the jukebox.
In this column you'll learn:- How to initialize the script.
- How to create the list of songs.
- How to create the volume buttons.
- How to create the control panel.
- How to adjust the volume.
- How to control the music.
At this point you may also view the entire script.
Created: July 6, 1998
Revised: May 16, 1999
URL: https://www.webreference.com/js/column21/