| |
PageSounds
YOU NEED A JAVA-SAVVY BROWSER TO SEE AND HEAR THIS
APPLET!
Click animation to stop
sounds.
Petite but powerful! At only 10k in size,
PageSounds packs a wallop:
Assign any number of sounds to both mouse "in" and "out"
actions.
Animate using as many (or few!) animation "arcs" as you desire.
Set background color to mesh seamlessly with any Web page.
Loads in less than a second even over modem connections.
Play sounds in the order specified, or randomly.
Loop sounds, or stop after each is played.
Click on animation to stop/stop sounds.
Download
PageSounds version 1.0 now!
LEGAL NOTICE: The mantisDrums.au
audio file playing now is provided as part of the PageSounds download. The
mantisDrums.au audio file is the exclusive property of Mantis Development Corp.,
and is included for instructional purposes only. The mantisDrums.au audio file
may not be used on your Web site, although you're free to use the
PageSounds applet in any way you wish as long as it isn't
resold.
Weaving PageSounds into your Web page is a
cinch--all it takes is a few lines of HTML!
Following is the complete applet tag used to weave PageSounds into this
very page:
<APPLET CODE="PageSounds.class"
WIDTH=50 HEIGHT=35> <PARAM NAME=outSound
VALUE="mantisDrums.au"> <PARAM NAME=inSound
VALUE="explosion.au"> <PARAM
NAME=inSoundLoop VALUE="yes"> <PARAM
NAME=outSoundLoop VALUE="yes">
<PARAM
NAME=backgroundColor VALUE="white"> </APPLET> |
Simply place the PageSounds.class file (the Java applet) and .au format
audio files inside
the same folder as the Web page in which you wish to weave the applet,
and then
construct an appropriate applet tag such as the one above using
any
of the following PARAMETERS:
PARAMETER |
DESCRIPTION |
outSound |
Sound(s) to play when mouse is outside the applet. The
value you supply is a string identifying the name of one or more.au (uLaw)
format sound files. If multiple sounds are specified, they are played in
order by default or randomly using the randomSounds parameter. In
any case, new sounds are played only when the mouse moves in/out of the
applet.
Note: The sound file(s) must reside in the same
folder as the PageSounds applet and the Web page you're weaving it into.
If more than one sound file is used, you must separate each with the pipe
character "|".
Example using a single "out" sound:
<PARAM NAME=outSound
VALUE="drums.au">
Example using multiple "out" sounds:
<PARAM NAME=outSound
VALUE="drums.au|pig.au|flute.au">
Related PARAMETERS: outSoundLoop,
randomSounds, mixSounds |
inSound |
Same as outSound parameter above, except this parameter
controls the sounds played when the mouse is moved inside of the
applet.
Example using a single "in" sound: <PARAM NAME=inSound
VALUE="bells.au">
Example using multiple "in" sounds:
<PARAM NAME=inSound
VALUE="siren.au|horn.au|splash.au">
Related PARAMETERS: inSoundLoop,
randomSounds, mixSounds |
outSoundLoopand
inSoundLoop |
By default, sounds play through to the end and then
stop. Using these parameters, you can loop "in" and "out" sounds for
continuous play (when a sound is "looped", it is repeated when end is
reached rather than stopping).
Example of looping both "in" and "out"
sounds: <PARAM
NAME=inSoundLoop VALUE="yes"> <PARAM NAME=outSoundLoop
VALUE="yes"> |
randomSounds |
By default, sounds are played in the order they're
specified with inSound and outSound parameters. You can, however, use the
randomSounds parameter to play sounds randomly rather than in
order.
Example of playing sounds randomly:
<PARAM NAME=randomSounds
VALUE="yes"> |
mixSounds |
By default, the currently playing sound will stop
playing before a new sound begins. You can, however, "mix" sounds together
using the mixSounds parameter.
Example of mixing sounds together: <PARAM NAME=mixSounds
VALUE="yes"> |
backgroundColor |
By default, no background color is used by PageSounds.
As a result, the applet will appear in a gray box when run under a
Java-savvy browser unless you specify a particular color. Using the backgroundColor parameter you can
specify up to 13 pre-defined colors by name (such as "red", "white"
or "blue"), or an unlimited number of colors using hexadecimal
values.
When specifying colors by name, you can use the
following: black, blue,
cyan, gray, darkGray, lightGray, magenta, orange, pink, red, white, yellow
and green
Example of a white background using a pre-defined
color: <PARAM
NAME=backgroundColor VALUE="white">
Example of a white background using its hexadecimal
value: <PARAM
NAME=backgroundColor VALUE="FFFFFF"> |
audioArcs |
By default, 7 arcs are animated when the ability to play
sounds is enabled. You can, however, specify any number or arcs using the
audioArcs parameter.
Example of animating with 4 audio arcs:
<PARAM NAME=audioArcs
VALUE="4">
TIP: CLICK ON THE ARCS TO STOP/START
SOUNDS |
showArcs |
By default, the PageSounds applet animates one or more "audio arcs"
when sound playing is enabled. You can, however, hide these arcs
altogether. This feature is useful if you don't want to allow the user to
disable sound playing, of don't wish for the animation to appear on your
page.
Example of "hiding" animated arcs: <PARAM NAME=showArcs
VALUE="no">
TIP: CLICK ON THE ARCS TO STOP/START
SOUNDS |
The PageSounds applet, tons of sounds, scores of goodies and a host of
cool Java
applets and scripts come with Java For Dummies! For more
information, visit
Mantis Java Links.
PageSounds Copyright (C)
1996-98, Mantis Development Corp.
All Rights Reserved
Worldwide. |
|