/***************************/ //@Author: Adrian "yEnS" Mato Gondelle //@website: www.yensdesign.com //@email: yensamg@gmail.com //@license: Feel free to use it, but keep this credits please! /***************************/ $().ready(function(){ //SETUP Mp3 files player example var playerMp3 = new SWFObject("player.swf","myplayer1","0","0","9"); playerMp3.addVariable("logo","css/images/logo.jpg"); playerMp3.addVariable("file","/downloads/loveandbeyond.mp3"); playerMp3.addVariable("icons","false"); playerMp3.write("player1"); //create a javascript object to allow us send events to the flash player var player1 = document.getElementById("myplayer1"); var mute1 = 0; var status1 = $("#status1"); //EVENTS for Mp3 files player $("#play1").click(function(){ player1.sendEvent("PLAY","true"); status1.text("NOW PLAYING..."); }); $("#stop1").click(function(){ player1.sendEvent("STOP","true"); status1.text(""); }); $("#pause1").click(function(){ player1.sendEvent("PLAY","false"); status1.text("PAUSED"); }); $("#mute1").click(function(){ if(mute1 == 0){ player1.sendEvent("mute","true"); mute1 = 1; } else{ player1.sendEvent("mute","false"); mute1 = 0; } }); var playerMp3 = new SWFObject("player.swf","myplayer26","0","0","9"); playerMp3.addVariable("logo","css/images/logo.jpg"); playerMp3.addVariable("file","/downloads/ontherunmixdown.mp3"); playerMp3.addVariable("icons","false"); playerMp3.write("player26"); //create a javascript object to allow us send events to the flash player var player26 = document.getElementById("myplayer26"); var mute26 = 0; var status26 = $("#status26"); //EVENTS for Mp3 files player $("#play26").click(function(){ player26.sendEvent("PLAY","true"); status26.text("NOW PLAYING..."); }); $("#stop26").click(function(){ player26.sendEvent("STOP","true"); status26.text(""); }); $("#pause26").click(function(){ player26.sendEvent("PLAY","false"); status26.text("PAUSED"); }); $("#mute26").click(function(){ if(mute26 == 0){ player26.sendEvent("mute","true"); mute26 = 1; } else{ player26.sendEvent("mute","false"); mute26 = 0; } }); var playerMp3 = new SWFObject("player.swf","myplayer30","0","0","9"); playerMp3.addVariable("logo","css/images/logo.jpg"); playerMp3.addVariable("file","/downloads/bewithmeftlilbit.mp3"); playerMp3.addVariable("icons","false"); playerMp3.write("player30"); //create a javascript object to allow us send events to the flash player var player30 = document.getElementById("myplayer30"); var mute30 = 0; var status30 = $("#status30"); //EVENTS for Mp3 files player $("#play30").click(function(){ player30.sendEvent("PLAY","true"); status30.text("NOW PLAYING..."); }); $("#stop30").click(function(){ player30.sendEvent("STOP","true"); status30.text(""); }); $("#pause30").click(function(){ player30.sendEvent("PLAY","false"); status30.text("PAUSED"); }); $("#mute30").click(function(){ if(mute30 == 0){ player30.sendEvent("mute","true"); mute30 = 1; } else{ player30.sendEvent("mute","false"); mute30 = 0; } }); var playerMp3 = new SWFObject("player.swf","myplayer4","0","0","9"); playerMp3.addVariable("logo","css/images/logo.jpg"); playerMp3.addVariable("file","/downloads/letmein.mp3"); playerMp3.addVariable("icons","false"); playerMp3.write("player4"); //create a javascript object to allow us send events to the flash player var player4 = document.getElementById("myplayer4"); var mute4 = 0; var status4 = $("#status4"); //EVENTS for Mp3 files player $("#play4").click(function(){ player4.sendEvent("PLAY","true"); status4.text("NOW PLAYING..."); }); $("#stop4").click(function(){ player4.sendEvent("STOP","true"); status4.text(""); }); $("#pause4").click(function(){ player4.sendEvent("PLAY","false"); status4.text("PAUSED"); }); $("#mute4").click(function(){ if(mute4 == 0){ player4.sendEvent("mute","true"); mute4 = 1; } else{ player4.sendEvent("mute","false"); mute4 = 0; } }); var playerMp3 = new SWFObject("player.swf","myplayer6","0","0","9"); playerMp3.addVariable("logo","css/images/logo.jpg"); playerMp3.addVariable("file","/downloads/breathless.mp3"); playerMp3.addVariable("icons","false"); playerMp3.write("player6"); //create a javascript object to allow us send events to the flash player var player6 = document.getElementById("myplayer6"); var mute6 = 0; var status6 = $("#status6"); //EVENTS for Mp3 files player $("#play6").click(function(){ player6.sendEvent("PLAY","true"); status6.text("NOW PLAYING..."); }); $("#stop6").click(function(){ player6.sendEvent("STOP","true"); status6.text(""); }); $("#pause6").click(function(){ player6.sendEvent("PLAY","false"); status6.text("PAUSED"); }); $("#mute6").click(function(){ if(mute6 == 0){ player6.sendEvent("mute","true"); mute6 = 1; } else{ player6.sendEvent("mute","false"); mute6 = 0; } }); var playerMp3 = new SWFObject("player.swf","myplayer7","0","0","9"); playerMp3.addVariable("logo","css/images/logo.jpg"); playerMp3.addVariable("file","/downloads/babygirl.mp3"); playerMp3.addVariable("icons","false"); playerMp3.write("player7"); //create a javascript object to allow us send events to the flash player var player7 = document.getElementById("myplayer7"); var mute7 = 0; var status7 = $("#status7"); //EVENTS for Mp3 files player $("#play7").click(function(){ player7.sendEvent("PLAY","true"); status7.text("NOW PLAYING..."); }); $("#stop7").click(function(){ player7.sendEvent("STOP","true"); status7.text(""); }); $("#pause7").click(function(){ player7.sendEvent("PLAY","false"); status7.text("PAUSED"); }); $("#mute7").click(function(){ if(mute7 == 0){ player7.sendEvent("mute","true"); mute7 = 1; } else{ player7.sendEvent("mute","false"); mute7 = 0; } }); var playerMp3 = new SWFObject("player.swf","myplayer8","0","0","9"); playerMp3.addVariable("logo","css/images/logo.jpg"); playerMp3.addVariable("file","/downloads/onandon.mp3"); playerMp3.addVariable("icons","false"); playerMp3.write("player8"); //create a javascript object to allow us send events to the flash player var player8 = document.getElementById("myplayer8"); var mute8 = 0; var status8 = $("#status8"); //EVENTS for Mp3 files player $("#play8").click(function(){ player8.sendEvent("PLAY","true"); status8.text("NOW PLAYING..."); }); $("#stop8").click(function(){ player8.sendEvent("STOP","true"); status8.text(""); }); $("#pause8").click(function(){ player8.sendEvent("PLAY","false"); status8.text("PAUSED"); }); $("#mute8").click(function(){ if(mute8 == 0){ player8.sendEvent("mute","true"); mute8 = 1; } else{ player8.sendEvent("mute","false"); mute8 = 0; } }); var playerMp3 = new SWFObject("player.swf","myplayer10","0","0","9"); playerMp3.addVariable("logo","css/images/logo.jpg"); playerMp3.addVariable("file","/downloads/swagsurfingremix.mp3"); playerMp3.addVariable("icons","false"); playerMp3.write("player10"); //create a javascript object to allow us send events to the flash player var player10 = document.getElementById("myplayer10"); var mute10 = 0; var status10 = $("#status10"); //EVENTS for Mp3 files player $("#play10").click(function(){ player10.sendEvent("PLAY","true"); status10.text("NOW PLAYING..."); }); $("#stop10").click(function(){ player10.sendEvent("STOP","true"); status10.text(""); }); $("#pause10").click(function(){ player10.sendEvent("PLAY","false"); status10.text("PAUSED"); }); $("#mute10").click(function(){ if(mute10 == 0){ player10.sendEvent("mute","true"); mute10 = 1; } else{ player10.sendEvent("mute","false"); mute10 = 0; } }); var playerMp3 = new SWFObject("player.swf","myplayer28","0","0","9"); playerMp3.addVariable("logo","css/images/logo.jpg"); playerMp3.addVariable("file","/downloads/goodtimes.MP3"); playerMp3.addVariable("icons","false"); playerMp3.write("player28"); //create a javascript object to allow us send events to the flash player var player28 = document.getElementById("myplayer28"); var mute28 = 0; var status28 = $("#status28"); //EVENTS for Mp3 files player $("#play28").click(function(){ player28.sendEvent("PLAY","true"); status28.text("NOW PLAYING..."); }); $("#stop28").click(function(){ player28.sendEvent("STOP","true"); status28.text(""); }); $("#pause28").click(function(){ player28.sendEvent("PLAY","false"); status28.text("PAUSED"); }); $("#mute28").click(function(){ if(mute28 == 0){ player28.sendEvent("mute","true"); mute28 = 1; } else{ player28.sendEvent("mute","false"); mute28 = 0; } }); var playerMp3 = new SWFObject("player.swf","myplayer41","0","0","9"); playerMp3.addVariable("logo","css/images/logo.jpg"); playerMp3.addVariable("file","/downloads/Will You Be Mine.mp3"); playerMp3.addVariable("icons","false"); playerMp3.write("player41"); //create a javascript object to allow us send events to the flash player var player41 = document.getElementById("myplayer41"); var mute41 = 0; var status41 = $("#status41"); //EVENTS for Mp3 files player $("#play41").click(function(){ player41.sendEvent("PLAY","true"); status41.text("NOW PLAYING..."); }); $("#stop41").click(function(){ player41.sendEvent("STOP","true"); status41.text(""); }); $("#pause41").click(function(){ player41.sendEvent("PLAY","false"); status41.text("PAUSED"); }); $("#mute41").click(function(){ if(mute41 == 0){ player41.sendEvent("mute","true"); mute41 = 1; } else{ player41.sendEvent("mute","false"); mute41 = 0; } }); var playerMp3 = new SWFObject("player.swf","myplayer37","0","0","9"); playerMp3.addVariable("logo","css/images/logo.jpg"); playerMp3.addVariable("file","/downloads/sheputitonme.mp3"); playerMp3.addVariable("icons","false"); playerMp3.write("player37"); //create a javascript object to allow us send events to the flash player var player37 = document.getElementById("myplayer37"); var mute37 = 0; var status37 = $("#status37"); //EVENTS for Mp3 files player $("#play37").click(function(){ player37.sendEvent("PLAY","true"); status37.text("NOW PLAYING..."); }); $("#stop37").click(function(){ player37.sendEvent("STOP","true"); status37.text(""); }); $("#pause37").click(function(){ player37.sendEvent("PLAY","false"); status37.text("PAUSED"); }); $("#mute37").click(function(){ if(mute37 == 0){ player37.sendEvent("mute","true"); mute37 = 1; } else{ player37.sendEvent("mute","false"); mute37 = 0; } }); });