Jump to content

Recommended Posts

Posted

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

Posted

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>

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...