DarkSideUser
07-27-2006, 06:09 PM
PLEASE help me!!!!
I read the thread explaining how to use darkplayer, and it works but I have the following problems:
1: I would like to be able to have it play one song than another, not just repeat the same one. HOW?
2: I currently have 9 songs (spaces "0" through "8"). It plays them all when I select them, but on the player bar that shows up (not in the code) there is an empty space between song "4" and "5" (the 5th and 6th actual song) even though there is no break in the code. I have it set on random play and sometimes it selects the blank space and plays nothing or selects one song and plays another. I know I havent misalligned the urls with the names in the code b/c when I select the song from the list it plays the correct one. PLEASE HELP!!!!
My xanga is http://www.xanga.com/I_Am_Dark_Lord_of_the_Sith
My current code (which is in my header module and with the bold in the original code erased even though I don't know what that did but soemone said to) is:
<object id="darkplayer" codeBase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701" type="application/x-oleobject" height="0" standby="Loading Microsoft Windows Media Player components..." width="0" classid="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95">
<param NAME VALUE>
<param NAME="ShowControls" VALUE="0">
<param NAME="ShowStatusBar" VALUE="0">
<param NAME="ShowDisplay" VALUE="0">
<param NAME="DefaultFrame" VALUE="Slide">
<param NAME="Autostart" VALUE="1">
<param NAME="Loop" VALUE="True">
</object>
<form name="form">
<center>
<select style="FONT-SIZE: 8pt; BACKGROUND:#FC8C8C; WIDTH: 180; COLOR: #000000; font-face: arial; height:174" name="playlist" size="1">
<option value="0">Star Wars Main Theme</option>
<option value="1">Imperial March</option>
<option value="2">Imperial March (Rage)</option>
<option value="3">Imperial March (Meco)</option>
<option value="4">Duel of the Fates<option>
<option value="5">Fett's Vett</option>
<option value="6">Thundercats</option>
<option value="7">Power Rangers</option>
<option value="8">Transformers</option>
</select>
<input TYPE="BUTTON" NAME="darkplay" VALUE="play" OnClick="play(document.forms['form'].playlist);">
<input TYPE="BUTTON" NAME="darkpause" VALUE="pause" OnClick="document.darkplayer.pause(); playstate=2;">
<input TYPE="BUTTON" NAME="darkstop" VALUE="stop" OnClick="document.darkplayer.stop(); playstate=2;"></p>
</form><script language="JavaScript">
<!--
var playstate = 0;
shuffle = 1;
songs=new Array();
songs[0]="http://kensforce.com/media/Star_Wars_-_Main_Theme.mp3";
songs[1]="http://www.paducahimperials.com/media/John_Williams_-_Star_Wars_-_Imperial_March.mp3";
songs[2]="http://caro.marly.free.fr/Imperial_March_Rage_Mix.mp3";
songs[3]="http://mp3.cdbaby.com/m/meco-03.mp3";
songs[4]="http://www.dmeb2.org/media/sounds/duelofthefates.mp3";
songs[5]="http://www.oldskoolphreak.com/audio/fetts_vette.mp3";
songs[6]="http://www.kultcartoons.de/downloads/titelsongs/thundercats.mp3";
songs[7]="http://www.pjtx.com/mighty_raw_-_power_ranger_themes__instrumentals__-_go_go_power_rangers__instrumental_.mp3";
songs[8]="http://www.wasted-off-butter.com/mp3s/transformers.mp3";
if (shuffle == 1) {
var randsg = Math.floor(Math.random()*songs.length);
document.darkplayer.FileName = songs[randsg];
document.darkplayer.scr = songs[randsg];
document.forms['form'].playlist.options[randsg].selected = true;
}
function play(list) {
if (playstate == 2) {
document.darkplayer.Play();
} else {
var snum = list.options[list.selectedIndex].value
document.darkplayer.FileName = songs[snum];
document.darkplayer.scr = songs[snum];
}
playstate = 0;
}
//-->
</script>
BTW, a really REALLY godd site for urls is www.singingfish.com
Thank you all so much
I read the thread explaining how to use darkplayer, and it works but I have the following problems:
1: I would like to be able to have it play one song than another, not just repeat the same one. HOW?
2: I currently have 9 songs (spaces "0" through "8"). It plays them all when I select them, but on the player bar that shows up (not in the code) there is an empty space between song "4" and "5" (the 5th and 6th actual song) even though there is no break in the code. I have it set on random play and sometimes it selects the blank space and plays nothing or selects one song and plays another. I know I havent misalligned the urls with the names in the code b/c when I select the song from the list it plays the correct one. PLEASE HELP!!!!
My xanga is http://www.xanga.com/I_Am_Dark_Lord_of_the_Sith
My current code (which is in my header module and with the bold in the original code erased even though I don't know what that did but soemone said to) is:
<object id="darkplayer" codeBase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701" type="application/x-oleobject" height="0" standby="Loading Microsoft Windows Media Player components..." width="0" classid="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95">
<param NAME VALUE>
<param NAME="ShowControls" VALUE="0">
<param NAME="ShowStatusBar" VALUE="0">
<param NAME="ShowDisplay" VALUE="0">
<param NAME="DefaultFrame" VALUE="Slide">
<param NAME="Autostart" VALUE="1">
<param NAME="Loop" VALUE="True">
</object>
<form name="form">
<center>
<select style="FONT-SIZE: 8pt; BACKGROUND:#FC8C8C; WIDTH: 180; COLOR: #000000; font-face: arial; height:174" name="playlist" size="1">
<option value="0">Star Wars Main Theme</option>
<option value="1">Imperial March</option>
<option value="2">Imperial March (Rage)</option>
<option value="3">Imperial March (Meco)</option>
<option value="4">Duel of the Fates<option>
<option value="5">Fett's Vett</option>
<option value="6">Thundercats</option>
<option value="7">Power Rangers</option>
<option value="8">Transformers</option>
</select>
<input TYPE="BUTTON" NAME="darkplay" VALUE="play" OnClick="play(document.forms['form'].playlist);">
<input TYPE="BUTTON" NAME="darkpause" VALUE="pause" OnClick="document.darkplayer.pause(); playstate=2;">
<input TYPE="BUTTON" NAME="darkstop" VALUE="stop" OnClick="document.darkplayer.stop(); playstate=2;"></p>
</form><script language="JavaScript">
<!--
var playstate = 0;
shuffle = 1;
songs=new Array();
songs[0]="http://kensforce.com/media/Star_Wars_-_Main_Theme.mp3";
songs[1]="http://www.paducahimperials.com/media/John_Williams_-_Star_Wars_-_Imperial_March.mp3";
songs[2]="http://caro.marly.free.fr/Imperial_March_Rage_Mix.mp3";
songs[3]="http://mp3.cdbaby.com/m/meco-03.mp3";
songs[4]="http://www.dmeb2.org/media/sounds/duelofthefates.mp3";
songs[5]="http://www.oldskoolphreak.com/audio/fetts_vette.mp3";
songs[6]="http://www.kultcartoons.de/downloads/titelsongs/thundercats.mp3";
songs[7]="http://www.pjtx.com/mighty_raw_-_power_ranger_themes__instrumentals__-_go_go_power_rangers__instrumental_.mp3";
songs[8]="http://www.wasted-off-butter.com/mp3s/transformers.mp3";
if (shuffle == 1) {
var randsg = Math.floor(Math.random()*songs.length);
document.darkplayer.FileName = songs[randsg];
document.darkplayer.scr = songs[randsg];
document.forms['form'].playlist.options[randsg].selected = true;
}
function play(list) {
if (playstate == 2) {
document.darkplayer.Play();
} else {
var snum = list.options[list.selectedIndex].value
document.darkplayer.FileName = songs[snum];
document.darkplayer.scr = songs[snum];
}
playstate = 0;
}
//-->
</script>
BTW, a really REALLY godd site for urls is www.singingfish.com
Thank you all so much