View Full Version : darkplayer


musicmaniac2626
01-15-2005, 06:07 AM
My darkplayer shows up on my xanga with the right words and everything, (i.e. song titles, play, pause, stop, etc.) but nothing will play! This is my code:

<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>
</p>
<form name="form">
<p style="text-align: center">
<select style="FONT-SIZE: 8pt; BACKGROUND:#FFFFFF; WIDTH: 160; COLOR: #00000; font-face: verdana; height:174" name="playlist" size="1">
<option value="0">Ocean Avenue- Yellowcard</option>
<option value="1">Outrageous- Britney Spears</option>
<option value="2">Confessions Part 2- Usher</option>
<option value="3">Holding Out For A Hero - Fairy Godmother- Shrek 2</option>
<option value="4">Take Me Away- FeFe Dobson</option>
<option value="5">SONG TITLE - ARTIST</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
// unlimited songs, just copy and paste the song line and change the number
songs=new Array();
songs[0]="http://a420.v8383d.c8383.g.vm.akamaistream.net/7/420/8383/3b858b51/mtvrdstr.download.akamai.com/8512/wmp/0/24962/28398_1_3_04.asf "
songs[1]="http://a420.v8383d.c8383.g.vm.akamaistream.net/7/420/8383/3b858b51/mtvrdstr.download.akamai.com/8512/wmp/2/3087/28652_1_7_04.asf "songs[2]="http://a420.v8383d.c8383.g.vm.akamaistream.net/7/420/8383/3b858b51/mtvrdstr.download.akamai.com/8512/wmp/4/292/29068_1_5_04.asf "
songs[3]="http://a420.v8383d.c8383.g.vm.akamaistream.net/7/420/8383/3b858b51/mtvrdstr.download.akamai.com/8512/wmp/0/25699/29214_1_14_04.asf "
songs[4]="http://a420.v8383d.c8383.g.vm.akamaistream.net/7/420/8383/3b858b51/mtvrdstr.download.akamai.com/8512/wmp/4/24873/28612_1_3_04.asf "
songs[5]="URL"


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>

Did I do something wrong? If so, can somebody please help me??? Thanks in advance!

tokyo bleu
01-15-2005, 09:20 AM
1. Are you sure you put it in the right box?
2. Are you viewing your Xanga in Internet Explorer? Darkplayer never works in Firefox (for me, anyways).
3. It could be conflicting with any other JavaScript codes you have.

musicmaniac2626
01-15-2005, 09:04 PM
OK, so I just got another code cuz I cleared everything out and then put it all back in and it still didn't work, so I got a new darkplayer code from another xanga user (it was on her site) and that one works, btu thanks sooo much!

Ziggy
01-15-2005, 09:23 PM
I didn't want to make a new thing in the forum for this since there are already several of these topics laying around...

I understood what to do on the darkplayer, but everytime I go and click preview to see if I did it right... it messes my intire xanga up.
It'll make my boxed entries wide, and it'll have the listings of the songs I put on, and the playlist at the bottom along with the songs written again on the screen. If I try and click the 'play' button nothing happens.

So I figured I'd go to my friend Inu's xanga since he has one, and right-clicked on his xanga and clicked on 'view source' <.< >.> ( I don't know if that's what you meant by 'no right-clicking' codes or not- but I did get permission from him, it was his idea in the first place)
Anywho, I just basically filled in the blanks, took out his music and put in mine, and it still did the same thing.

I've been putting it in 'Website Stats' in my 'Look and Feel' section thinking that was the correct place to put it, but I dunno. I also tried the other one 'JavaScript Module' just trying to see if anything different would happen, and the exact thing accured.

I'd save the changes and show you what would happen and give you the link, but I don't know if that would count at advertizing or not... ;_;

Could someone please help me?