Re: [jQuery] del.icio.us powered mp3 player plugin
Franck Marcia schreef: > I tested it with IE5.5, IE6, IE7RC1, FF1.5.0.6 and Opera9 and it works > fine... if you remove and only keep : > http://fmarcia.info/jquery/mp3/mp3.html > Thanks this really did the trick and cut down the code a lot. I will add a more flexible optional parameter field so that the player is adjustable too and checking for the href attribute and if the file is an mp3 file. -- David Duymelinck [EMAIL PROTECTED] ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] del.icio.us powered mp3 player plugin
David, I tested it with IE5.5, IE6, IE7RC1, FF1.5.0.6 and Opera9 and it works fine... if you remove and only keep : http://fmarcia.info/jquery/mp3/mp3.html I don't know if is mandatory for other browsers; if so, you could use $.browser to check it. Franck. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] del.icio.us powered mp3 player plugin
Andy Matthews schreef: > It never worked for me. IE 6+ for the PC. > You are right it doesn't work on IE6 or IE7. I assumed it worked because i saw the player appear but it gets stuck loading. I have no idea how to fix this, anyone else does? There was a major flaw in the code but i set it straight now. the improved code ; $.fn.mp3player = function(play,stop){ if (typeof play == "undefined") { play = "play"; } if (typeof stop == "undefined") { stop = "stop"; } return this.each(function(){ $(this).prepend('http://del.icio.us/static/img/mp3/play.gif"; alt="'+play+'" class="mp3control"> '); $(this).find("img.mp3control").click(function(){ var url = $(this).parent().attr("href"); var alt = $(this).attr("alt"); if(alt == play){ // reset all values op page $("object#player").remove(); $("img.mp3control").attr({src : "http://del.icio.us/static/img/mp3/play.gif";, alt : play}); // adjust image and innerhtml $(this).attr({src : "http://del.icio.us/static/img/mp3/stop.gif";, alt : stop}); $(this).after('http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0"; classid="clsid:d27cdb6e-ae6d-11cf-96b8-44455354" style="vertical-align: bottom; margin-right: 0.2em;">http://del.icio.us/static/swf/playtagger.swf"; name="movie"/>http://www.macromedia.com/go/getflashplayer"; type="application/x-shockwave-flash" allowscriptaccess="sameDomain" name="player" wmode="transparent" quality="high" flashvars="theLink='+url+'&fontColor=00" src="http://del.icio.us/static/swf/playtagger.swf"; style="vertical-align: bottom; margin-right: 0.2em;"/>'); return false; }else{ $(this).attr({src : "http://del.icio.us/static/img/mp3/play.gif";, alt : play}); $("object#player").remove(); return false; } }); }); }; ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] del.icio.us powered mp3 player plugin
I like it :-) A simple addition would provide a bunch of functionality: $("[EMAIL PROTECTED] $= .mp3]").mp3player(); That will find all links that point to an MP3 file and automatically convert them to an MP3 Player. Keep up the good work! --John On 8/28/06, David <[EMAIL PROTECTED]> wrote: > I made my first plugin for jquery. It's not really a difficult one to > program but it adds a nice functionality to your mp3 links. Using the > del.icio.us mp3 player you can let people preview your mp3s . > > The code and an example are on > http://xwerocode.blogspot.com/2006/08/my-first-jquery-plugin.html > > Stop downloading just listen :) > > > David > > > ___ > jQuery mailing list > discuss@jquery.com > http://jquery.com/discuss/ > -- John Resig http://ejohn.org/ [EMAIL PROTECTED] ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] del.icio.us powered mp3 player plugin
I like that what about doing a next|previous button...Look: the user could change the songs... i tried it before, but i didnt manage stopping the sound when i remove it...Lets try? =P 2006/8/29, Andy Matthews <[EMAIL PROTECTED]>: It never worked for me. IE 6+ for the PC.-Original Message-From: [EMAIL PROTECTED] [mailto: [EMAIL PROTECTED]]OnBehalf Of DavidSent: Monday, August 28, 2006 3:09 PMTo: jQuery Discussion.Subject: [jQuery] del.icio.us powered mp3 player plugin I made my first plugin for jquery. It's not really a difficult one toprogram but it adds a nice functionality to your mp3 links. Using thedel.icio.us mp3 player you can let people preview your mp3s . The code and an example are onhttp://xwerocode.blogspot.com/2006/08/my-first-jquery-plugin.htmlStop downloading just listen :) David___jQuery mailing listdiscuss@jquery.comhttp://jquery.com/discuss/ ___jQuery mailing listdiscuss@jquery.comhttp://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] del.icio.us powered mp3 player plugin
It never worked for me. IE 6+ for the PC. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of David Sent: Monday, August 28, 2006 3:09 PM To: jQuery Discussion. Subject: [jQuery] del.icio.us powered mp3 player plugin I made my first plugin for jquery. It's not really a difficult one to program but it adds a nice functionality to your mp3 links. Using the del.icio.us mp3 player you can let people preview your mp3s . The code and an example are on http://xwerocode.blogspot.com/2006/08/my-first-jquery-plugin.html Stop downloading just listen :) David ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] del.icio.us powered mp3 player plugin
I made my first plugin for jquery. It's not really a difficult one to program but it adds a nice functionality to your mp3 links. Using the del.icio.us mp3 player you can let people preview your mp3s . The code and an example are on http://xwerocode.blogspot.com/2006/08/my-first-jquery-plugin.html Stop downloading just listen :) David ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/