Sean O » jQuery plugins » jMP3 » Sean O's javaScript MP3 player / jQuery Plugin

17 June 2024
As featured in the brand new book, JavaScript and AJAX For Dummies

What is it?

jMP3 (javaScript MP3 player) is an easy way make any MP3 playable directly on most any web site (to those with Flash & javaScript enabled),
using the sleek Flash Single MP3 Player & the fantabulous jQuery.

The Playtagger is OK for basic purposes, but is not very configurable, can often incur startup delays, and is just not very attractive.

jMP3 aims to fix all that!


Listen to this sound:

Listen to, scrub and download this sound (conceal the filename):

Listen to MP3s from any website (hide download option... let's not get the MAFIAA involved!):

The call to this player is simply ignored if not an mp3 (see source):


  1. First, download the lightweight (3k) Flash Single MP3 Player
    (Feb 2007: looks like Jeroen has updated his player and removed the old version...
    grab a local copy of the original Single MP3 Player compatible with jMP3 here)
  2. Then, grab the jMP3 plugin (you do have jQuery already as well, yes?)
  3. Set the path to singlemp3player.swf in jMP3
  4. Include jQuery & the jMP3 plugin scripts in the <HEAD> your page
  5. <script type="text/javascript" src="/js/jquery/jquery.js"></script>
    <script type="text/javascript" src="/js/jquery/jmp3/jquery.jmp3.js"></script>

  6. Initialize MP3 player on individual IDs (for customization), or generic classes (for lists of files)
  7. <script type="text/javascript">
    		// default options
    		// custom options
    			backcolor: "000000",
    			forecolor: "00ff00",
    			width: 200,
    			showdownload: "true"

  8. Rock out!

Plugin Information

Download jMP3 Now

»» Read My blog.

»» Follow me on Twitter.

»» Like jMP3? Please rate it on the jQuery Plugins page.

Terms Of Use
»» If you use this on your site, just drop me a line at: and show me how you're using it!
If you're in need of hosting, check out Dreamhost's web hosting accounts.

Questions? Comments? Random Blather?

Credits & Inspiration:

See Also...

jQueryHelp - Code Reference application for jQuery functions

Page contents & code © 2006-2010 Sean O
Last modified 01/11/10