THE XSOUND JAVASCRIPT OBJECT

This object allows a sound file (.au or .wav) to be controlled. Just like all other X Objects it is built with a very small amount of code in this case only one line, OO methodology is a wonderful thing.

Click on any one of the following buttons to perform the indicated action with the current sound file loaded in xSound.        

The object is customizable, the following attributes can be set:

  1. The sound file

Call construtor xSound(strAudioFile) in xSound.js and pass it a reference to the sound file.

Call xSounds's play, pause, loop or stop methods to perform the indicating action.

Just like all other X objects this one is browser independent and will work in Internet Explorer and Netscape Navigator.

Code!


xLayer in Action| Fixed Position Javascript Object| Toolbar Object| Menu Object| Restricted Area Object| Animated Button Object| Drag Object| Internal Frame Object| Number Mask Object| Sound Object

You may use this javascript for free!
Home