0 Members and 1 Guest are viewing this topic.
//--Change the MP3 file.-------------------------//function changeMP3(method) { if (method=="shuffle") { nr = Math.round(Math.random() * playList.length - 1); while(boxOpen==playList[nr].boxid) nr = Math.round(Math.random() * playList.length - 1); initPreviewBox(playList[nr].boxid,'MP3',playList[nr].name); return false; } for(i=0;i<playList.length;i++) { if(boxOpen == playList[i].boxid) { nr = method=="next"?playList[i+1]?i+1:0:i-1>=0?i-1:playList.length-1; initPreviewBox(playList[nr].boxid,'MP3',playList[nr].name); return false; } }}//--Create dynamic playlist.---------------------//function dynPL() { var elem = document.getElementsByTagName("div"); for(i=0,j=0;i<elem.length;i++) { if(elem[i]) if(elem[i].getAttribute("name")) if(elem[i].getAttribute("name") == "mp3File") { playList[j] = elem[i] playList[j].name = elem[i].firstChild.name playList[j].boxid = elem[i].childNodes[1].id j++; } }}