jQuery.fn.jmp3 = function(passedOptions){ var playerpath = "/flashplayer/"; var options = { "filepath": "/mp3/", "backcolor": "", "forecolor": "ffffff", "width": "25", "repeat": "no", "volume": "70", "autoplay": "false", "showdownload": "true", "showfilename": "true" }; if (passedOptions) { jQuery.extend(options, passedOptions); } return this.each(function(){ var filename = options.filepath + jQuery(this).html(); var validfilename = filename.indexOf(".mp3"); if (validfilename == -1) { return false; } var mp3html = ''; mp3html += ''; mp3html += '