/    Sign up×
Community /Pin to ProfileBookmark

Undo Previous link

I have 4-5 linked click and play mp3’s (historical voices)

What I am having trouble with is getting what ever voice is playing to stop playing when another is clicked. (instead on top of the other)

Any help will the code will be much appreciated.

Sandy

to post a comment
JavaScript

2 Comments(s)

Copy linkTweet thisAlerts:
@samliewNov 10.2007 — Please post us your current code, or a link to it.
Copy linkTweet thisAlerts:
@motuitiauthorNov 10.2007 — Here is the way I've been doing it - html only

I have had to actually change the page to get the song to stop (you'll see what I mean below). OK when there are three audio clips. But in a new project with a dozen voices I cant change to a new html page.

I just want to be able to click on one clip and if another is already playing it stops. I realize that this is a javascript thing not html like i am doing now.

http://www.motuiti.com/Avvy/AvvyRoach.html
×

Success!

Help @motuiti spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 4.28,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...