View Full Version : how do I turn the sound off


merlin
06-16-2003, 03:32 PM
Ok, I've got my hover button to play a sound (.au file) but how do I make the sound stop?
Short sounds, like a simple 'click' aren't a problem. But I want to use use a longer sound file and let the viewer have some way to stop the sound if he/she wants.
I've tried making a second hover button with a real short sound to see if starting that sound would stop the first sound, but I hear the second sound AND the first sound keeps on going.
I also tried adding a short sound to the mouseclick to see if that would stop the hover sound, but alas...that didn't work either.

Tx, John
Here's a copy of my (Frontpage generated) code:

<applet code="fphover.class" codebase="./" width="292" height="81">
<param name="color" value="#000080">
<param name="hovercolor" value="#0000FF">
<param name="text" value="Home">
<param name="effect" value="glow">
<param name="image" valuetype="ref" value="images/Buttons/DigitalSailbutton.gif">
<param name="fontstyle" value="bold">
<param name="font" value="Helvetica">
<param name="hoversound" valuetype="ref" value="Sounds/click.au">
<param name="textcolor" value="#FFFFFF">
<param name="hoverimage" valuetype="ref" value="images/Buttons/DigitalSailbutton2.gif">
<param name="url" valuetype="ref" value="none_of_these_links_actually_go.htm">
<param name="fontsize" value="30">
</applet>
<param name="hoversound" valuetype="ref" value="Sounds/click.au">