Freesnöw
Freesnöw

Reputation: 32213

Starting and stopping a sound with Javascript

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.

Upvotes: 1

Views: 524

Answers (2)

epascarello
epascarello

Reputation: 207557

You may want to look into SoundsManager2

Upvotes: 0

WEFX
WEFX

Reputation: 8572

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

Upvotes: 2

Related Questions