View Full Version : darkplayer


princessgrl92
10-04-2004, 05:44 AM
ummm....im still tryin to get the darkplayer on my site and it still dont work. umm i mean like....the hole box with words shows and everything...the music just wont play. and i do have IE not netscape...im pretty sure anyways. about upgrading my IE browser...how do i so that???

probablelosses
10-16-2004, 04:28 PM
ummm....im still tryin to get the darkplayer on my site and it still dont work. umm i mean like....the hole box with words shows and everything...the music just wont play. and i do have IE not netscape...im pretty sure anyways. about upgrading my IE browser...how do i so that???
This is the darkplayer code i have it's worked pretty well for me except i am amving some style problems with it but it gets the job done.
see an example here :
http://www.xanga.com/home.aspx?user=set_phasers_to_stun

<object id="darkplayer" codeBase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701" type="application/x-oleobject" height="44" standby="Loading Microsoft Windows Media Player components..." width="195" classid="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95"><PARAM NAME="transparentatStart" VALUE="true">
</object>
<form name="form">

<p style="text-align: center">
<select style="FONT-SIZE: 8pt; BACKGROUND:#000000; WIDTH: 200px; COLOR: #00CCFF; font-face: arial" name="playlist" size="1">
<option value="0">Song Name Here</option>
<option value="1">Song Name Here</option>
<option value="2">Song Name Here</option>
<option value="3">Song Name Here</option>

</select><br>
<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 = 1;
shuffle = 1; // set to 0 to always play first song in list
// set to 1 to randomly choose the first song to play
songs=new Array();
songs[0]="Url Here";
songs[1]="Url Here";
songs[2]="Url Here";
songs[3]="Url Here";

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 = 1;
}
//-->
</script>

kitty_katt07
10-16-2004, 06:11 PM
Can I see your code? You might have just deleted a ' or something and it causes the whole thing not to work.