开发者

How to trigger sound whenever a user clicks an element

开发者 https://www.devze.com 2022-12-15 04:58 出处:网络
How can I play开发者_高级运维 an mp3 or wav sound using the jquery click event? i want to add click sound not any track or songYou might find the jQuery Sound Plugin of use:

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


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);


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

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号