need code please for mouse click sound in page

terrapin111

New Member
there are two "pictures" or objects on my web page that, when clicked, I would like the visitor to hear a sound (file that is uploaded). the filename is drfft.wav

I am currently using wordpress and IE8 to design the page.

There is a section to embed code on the page designer and then the "body" where I assume I would put something like this:

<A HREF="javascript/playSound(0);">Click here to play sound</A>

any help would be appreciated.
 

notarypublic

New Member
Here are a few different ways to embed sound files onto your page.. I think #4 is what you're looking for.

That said, flash is better suited for this kind of thing. In general, people don't appreciate audio they can't control (maybe they're currently listening to music and your audio clip is distracting, for example), so are you really sure that you want to do this? Is it for a navigation bar, or something?
 
Top