PDA

View Full Version : Playing a single "note" on "Roll-Over"


jPaul
06-13-2005, 08:03 PM
Hello Everybody,
I've been reading several threads about playing sounds, anmd they all appear to be far more complicated than my idea of a single solitary "BONG" when the buttons Roll-Over. No click is desired, just a mouse cursor touching the graphics.
Here's what I have done:

<TD align=right>
<A HREF="javascript:playnote()">
<IMG SRC="img/bellOff.gif" width="120" height="92"
ONMOUSEOVER="this.setAttribute('src','img/bellOn.gif')"
ONMOUSEOUT="this.setAttribute('src','img/bellOff.gif')"
BORDER="0">
</A>
</TD>

I have the playnote function in my JS file.
( there is a link on the shtml page )

function playnote()
{
I don't know how to make the sound play... without the cute little
control pannel for the sound
}

Can anyone help?

Thanks -Paul-