homepage Welcome to WebmasterWorld Guest from 54.167.185.110
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
Forum Library, Charter, Moderator: open

JavaScript and AJAX Forum

    
Play MP3 on mouse click
jmorgan




msg:4362227
 4:18 am on Sep 14, 2011 (gmt 0)

I want to play an MP3 file when a user clicks a button/image. Is there an easy way to do this?

 

abacus2011




msg:4362528
 6:46 pm on Sep 14, 2011 (gmt 0)

i found this here if you would like to try it...

[codingforums.com...]

<input type="button" value="Play" onclick="play('http://somesong.mp3')"><input type="button" value="Stop" onclick="stop()">

there is also more post on this in that thread from that link

jmorgan




msg:4362627
 10:53 pm on Sep 14, 2011 (gmt 0)

Thanks!

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved