|

Add sound effects to your web pages with JsoundS, a cool free java applet.
Download jsounds.zip
(3Kb)
To use JSoundS on
your web site -
1. Unzip the JSoundS
zip file to your root directory.
2. Add the following
HTML snippet to your web page.
<applet name="jsounds"
code="jsounds.class" codebase = "jsounds" width="0"
height="0">
<param name="copyright" value="www.smokingun.co.uk">
<param name="sound_1" value="click.au">
.... add up to 9 different sound parameters
(make sure
you add the au sound files to the jsounds directory)
<param name="sound_9" value="yoursound.au">
</applet>
3. Then simply call
the play method whenever to want to play a sound on your web page.
For example :-
OnMouseOver =
"document.jsounds.play(1);" (to play sound 1)
or
OnMouseOver =
"document.jsounds.play(7);" (to play sound 7)
4. Additionally, you can control the sound effects with the following:
document.jsounds.loop(n)
this plays sound 'n' continuously.
document.jsounds.stop(n);
this stops sound 'n'.
Home
|