开发者

Starting and stopping a sound with Javascript

开发者 https://www.devze.com 2023-03-03 19:56 出处:网络
I need to start a sound effect at will... I need it to be stopped as well before it is over. 开发者_如何学运维 I\'m doing this all in JavaScript.How would I go about this?I\'ve never used sounds befor

I need to start a sound effect at will... I need it to be stopped as well before it is over. 开发者_如何学运维 I'm doing this all in JavaScript. How would I go about this? I've never used sounds before in a page (normally not a good thing to use sounds, this project requires me to).

Any help would be appreciated :)

If it means anything, I'm also utilizing jQuery.


If you're using jquery, have you tried the sound plug-in?


You may want to look into SoundsManager2

0

精彩评论

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