views:

382

answers:

2

How can I play an mp3 or wav sound using the jquery click event?

i want to add click sound not any track or song

A: 

You can't use DHTML to play sound. You can use a flash player like this one.

Mongus Pong
huh? I'm pretty sure you can
Andreas Bonini
+2  A: 

You might find the jQuery Sound Plugin of use:

This is a simple sound player, it uses flash to play the sounds, but DOES NOT provide a flash interface for any controls, everything is controlled via jQuery

$("#sound").sound({swf: url});
$("#sound").load(url);
$("#sound").play();
$("#sound").pause();
$("#sound").stop();
$("#sound").volume(0-100);
Jonathan Sampson
it is under development once i complete it i will tell you
Web Worm