Graeme Posted October 8, 2012 Report Posted October 8, 2012 Hello All, What code should I use to enable a visitor to a web site to be able to listen to an MP3 file? I would like the user to be able to click on a button to play the file then say pause etc. Thank you as always, Best wishes Graeme Quote
Dhanishta Posted October 15, 2012 Report Posted October 15, 2012 can you tell in which technology you developed your website? Using an object tag, we can create our own little player with a few lines of code. Paste the code below into your page and insert the link to your MP3. Then you can customize options like height, width, background color, loop, and autoplay. <object width="300" height="42"> <param name="src" value="LINKHERE"> <param name="autoplay" value="false"> <param name="controller" value="true"> <param name="bgcolor" value="#FFFFFF"> <embed src="LINKHERE" autostart="false" loop="false" width="300" height="42" controller="true" bgcolor="#FFFFFF"></embed> </object> Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.