Help - Search - Members - Calendar
Full Version: Help!!! my playlist isnt working!!!
Forums > Resource Center > Support Center > Xanga Support > Xanga Resolved Topics
worshipdaknicks
[COLOR=red] hey everyone... i was hopeing someone could help me. My playlist for xanga isn't playing! It was, but then i added more songs and now it isn't! mad.gif mad.gif mad.gif!!! So yesterday i decided to get a new code and everything... but it still didn't work, i must have spent 3 hours on it! I got all my codes from Drak player muisc, maybe its the codes from there that there is something wrong with. well i will show you my playlist code thing.... and if anyone sees anything wrong.... please help me! i will also give you my xanga link! Thank you so much! biggrin.gif

<!-- begin code provided by createblog.com --><br />
<!-- begin code provided by createblog.com --><br />
<br />
<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"><br />
<param NAME VALUE><br />
<param NAME="ShowControls" VALUE="1"><br />
<param NAME="ShowStatusBar" VALUE="1"><br />
<param NAME="ShowDisplay" VALUE="1"><br />
<param NAME="DefaultFrame" VALUE="Slide"><br />
<param NAME="Autostart" VALUE="1"><br />
<param NAME="Loop" VALUE="True"><br />
</object><br />
<form name="form"><br />
<select name="playlist" size="1"><br />
<!-- Add song info here --><br />
<option value="0">&#9829 Speed of Soud- Coldplay </option><br />
<option value="1">&#9829 I'm not okay- My Chemical Romance</option><br />
<option value="2">&#9829 Just a lil bit- 50 cent </option><br />
<option value="3">&#9829 candy shop- 50- cent </option><br />
<option value="4">&#9829 Vertigo- U2</option><br />
<option value="5">&#9829 Where the streets have no name- U2</option><br />
<option value="6">&#9829 Hey Jude- Beatles</option><br />
<option value="7">&#9829 Can't buy me love- Beatles</option><br />
<option value="8">We can work it out- Beatles </option><br />
<option value="9">&#9829 Day Tripper- Beatles </option><br />
<option value="10">&#9829 She loves you- Beatles </option><br />
<option value="11">&#9829 I want to hold your hand- Beatles</option><br />
<option value="12">&#9829 Dandelion- Rolling Stones</option><br />
<option value="13">&#9829 Paint it Black- Rolling Stones</option><br />
<option value="14">&#9829 Satisfaction- Rolling Stones</option><br />
<option value="15">&#9829 Gossip Folks- Missy Elliot</option><br />
<option value="16">&#9829 Should i stay or should i go- The Clash</option><br />
<option value="17">&#9829 Welcome to the Jungle- Guns N Roses</option><br />
<option value="18">&#9829 Sweet Child O' Mine- Guns N Roses</option><br />
<option value="19">&#9829 Paradise City- Guns N Roses</option><br />
<option value="20">&#9829 Rocket Queen- Guns N Roses</option><br />
<option value="21">&#9829 American Idiot- Green Day</option><br />
<option value="22">&#9829 Holiday- Green Day </option><br />
<option value="23">&#9829 Boulevard of Broken Dreams- Green Day</option><br />
<option value="24">&#9829 St. Jimmy- Green Day </option><br />
<option value="25">&#9829 Wake me up when september ends- Green Day</option><br />
<option value="26">&#9829 Rock you like a hurricane- Scorpians</option><br />
<option value="27">&#9829 Don't Phunk with my Heart- BlackEyed Peas</option><br />
<br />
<br />
</select><br><br />
<input TYPE="BUTTON" NAME="darkplay" VALUE="Spin That Shit" OnClick="play(document.forms['form'].playlist);"><br />
<input TYPE="BUTTON" NAME="darkpause" VALUE="Break Time" OnClick="document.darkplayer.pause(); playstate=2;"><br />
<input TYPE="BUTTON" NAME="darkstop" VALUE="Enough" OnClick="document.darkplayer.stop(); playstate=2;"></p><br />
</form><br />
<br />
<script language="JavaScript"><br />
<!--<br />
var playstate = 1;<br />
shuffle = 1; // Set to 0 to always play first song in list<br />
// Set to 1 to randomly choose the first song to play<br />
songs=new Array();<br />
<br />
// Add song URLs here<br />
songs[0]="; http://a425.v8384d.c8384.g.vm.akamaistream...sf";<br />
songs[1]=";
http://a425.v8384d.c8384.g.vm.akamaistream...sf";<br />
songs[2]="; http://a425.v8384d.c8384.g.vm.akamaistream...sf";<br />
songs[3]="; http://a425.v8384d.c8384.g.vm.akamaistream...sf";<br />
songs[4]="; http://a425.v8384d.c8384.g.vm.akamaistream...0198_1_1_05.asf ";<br />
songs[5]="; http://a425.v8384d.c8384.g.vm.akamaistream...sf";<br />
songs[6]="; http://a425.v8384d.c8384.g.vm.akamaistream...sf";<br />
songs[7]="; http://a425.v8384d.c8384.g.vm.akamaistream...sf";<br />
songs[8]="; http://a425.v8384d.c8384.g.vm.akamaistream...sf";<br />
songs[9]="; http://a425.v8384d.c8384.g.vm.akamaistream...sf";<br />
songs[10]="; http://a425.v8384d.c8384.g.vm.akamaistream...sf";<br />
songs[11]="; http://a425.v8384d.c8384.g.vm.akamaistream...sf";<br />
songs[12]="; http://a425.v8384d.c8384.g.vm.akamaistream...sf";<br />
songs[13]="; http://a425.v8384d.c8384.g.vm.akamaistream...sf";<br />
songs[14]="; http://a425.v8384d.c8384.g.vm.akamaistream...sf";<br />
songs[15]="; http://a425.v8384d.c8384.g.vm.akamaistream...sf";<br />
songs[16]="; http://a425.v8384d.c8384.g.vm.akamaistream...sf";<br />
songs[17]="; http://a425.v8384d.c8384.g.vm.akamaistream...sf";<br />
songs[18]="; http://a425.v8384d.c8384.g.vm.akamaistream...sf";<br />
songs[19]="; http://a425.v8384d.c8384.g.vm.akamaistream...sf";<br />
songs[20]="; http://a425.v8384d.c8384.g.vm.akamaistream...sf";<br />
songs[21]="; http://a425.v8384d.c8384.g.vm.akamaistream...sf";<br />
songs[22]="; http://a425.v8384d.c8384.g.vm.akamaistream...sf";<br />
songs[23]="; http://a425.v8384d.c8384.g.vm.akamaistream...sf";<br />
songs[24]="; http://a425.v8384d.c8384.g.vm.akamaistream...sf";<br />
songs[25]="; http://a425.v8384d.c8384.g.vm.akamaistream...sf";<br />
songs[26]="; http://a425.v8384d.c8384.g.vm.akamaistream...sf";<br />
songs[27]="; http://a425.v8384d.c8384.g.vm.akamaistream...sf";<br />
<br />
<br />

if (shuffle == 1) {<br />
var randsg = Math.floor(Math.random()*songs.length);<br />
document.darkplayer.FileName = songs[randsg];<br />
document.darkplayer.scr = songs[randsg];<br />
document.forms['form'].playlist.options[randsg].selected = true;<br />
}<br />
function play(list) {<br />
if (playstate == 2) {<br />
document.darkplayer.Play();<br />
} else {<br />
var snum = list.options[list.selectedIndex].value<br />
document.darkplayer.FileName = songs[snum];<br />
document.darkplayer.scr = songs[snum];<br />
}<br />
playstate = 1;<br />
}<br />
//--><br />
</script><br />
<!-- end code provided by createblog.com -->



and here is the link to my xanga... My xanga
Sweetpeaxxx14
I used to have a playlist on my xanga.. but i took it off.. my playlist looked a lot different. I think its the code.. ill get you the one that i had .. one sec
Sweetpeaxxx14
Here is the code

<!-- begin code provided by createblog.com -->
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">
<select name="playlist" size="1">

<!-- Add song info here -->
<option value="0">Artist Name - Song Title</option>
<option value="1">Artist Name - Song Title</option>
<option value="2">Artist Name - Song Title</option>
<option value="3">Artist Name - Song Title</option>
<option value="4">Artist Name - Song Title</option>

</select>
<input TYPE="BUTTON" NAME="darkplay" VALUE="play" OnClick="play(document.forms['form'].playlist);">
</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();

// Add song URLs here
songs[0]="SONG URL HERE";
songs[1]="SONG URL HERE";
songs[2]="SONG URL HERE";
songs[3]="SONG URL HERE";
songs[4]="SONG 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>
<!-- end code provided by createblog.com -->
Sweetpeaxxx14
Here is a music site.. http://www.xanga.com/musicurl

and you can also go to the big book of resources and get a site from there http://www.createblog.com/forums/index.php?showtopic=14636
ckling
...
it's the link of ur songs...
try to find the full link of that.
as Sweetpeaxxx14 said, the format should be songs[0]="SONG URL HERE";
how come it have so many <br /> in your scripts??
Kenado
Yeah um next time can you guys use the code box it's this simple

hit code box paste the code then hit the code box again

talcumpowder
..... It's all the breaks (<br />) in your code. They're not supposed to be there. Take them out and it works fine.
Ignore what everyone said about the full links.... It's just the fact that you didn't use a codebox that the links are shortened.
worshipdaknicks
ok thank you guys soooooo much! i will try taking the br things out, and if it still doesn't work i will just go to some of the links you gave me! thanks again!

-stef
worshipdaknicks
guys its still not working! i got a new list and all! i dont know what to do!! here is my code now

[<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">
<p style="text-align: center">
<select style="FONT-SIZE: 8pt; BACKGROUND:#000000; WIDTH: 250px; COLOR: ff4488; font-face: verdana" name="playlist" size="1">
<option value="0">Im not okay</option>
<option value="1">Just a lil bit</option>
<option value="2">candy shop</option>
<option value="3">vertigo</option>
<option value="4">where the streets have no name</option>
<option value="5">hey jude</option>
<option value="6">can't buy me love</option>
<option value="7">we can work it out</option>
<option value="8"> day tripper</option>
<option value="9">she loves you</option>
<option value="10">i wanna hold your hand</option>
<option value="11">Dandelion</option>
<option value="12">Paint it black</option>
<option value="13">Satisfation</option>
<option value="14">Welcome to the Jungle</option>
<option value="15"> Sweet Child O' Mine</option>
<option value="16">Paradise City</option>
<option value="17">You could be mine <3</option>
<option value="18">American Idiot</option>
<option value="19">Holiday</option>
<option value="20">dont phunk with my heart</option>
<option value="21">Speed of sound</option>
<option value="22">Cold Hard Bitch</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]="
http://a425.v8384d.c8384.g.vm.akamaistream...5_05.asf";
songs[1]="
http://a425.v8384d.c8384.g.vm.akamaistream...4_05.asf";
songs[2]="
http://a425.v8384d.c8384.g.vm.akamaistream...7_05.asf";
songs[3]="
http://a425.v8384d.c8384.g.vm.akamaistream...1_05.asf";
songs[4]="
http://a425.v8384d.c8384.g.vm.akamaistream...1_05.asf";
songs[5]="
http://a425.v8384d.c8384.g.vm.akamaistream...7_05.asf";
songs[6]="
http://a425.v8384d.c8384.g.vm.akamaistream...7_05.asf";
songs[7]="
http://a425.v8384d.c8384.g.vm.akamaistream...2_05.asf";
songs[8]="
http://a425.v8384d.c8384.g.vm.akamaistream...1_05.asf";
songs[9]="
http://a425.v8384d.c8384.g.vm.akamaistream...1_05.asf";
songs[10]="
http://a425.v8384d.c8384.g.vm.akamaistream...5_05.asf";
songs[11]="
http://a425.v8384d.c8384.g.vm.akamaistream...4_05.asf";
songs[12]="
http://a425.v8384d.c8384.g.vm.akamaistream...4_05.asf";
songs[13]="
http://a425.v8384d.c8384.g.vm.akamaistream...1_05.asf";
songs[14]="
http://a425.v8384d.c8384.g.vm.akamaistream...4_05.asf";
songs[15]="
http://a425.v8384d.c8384.g.vm.akamaistream...7_05.asf";
songs[16]="
http://a425.v8384d.c8384.g.vm.akamaistream...1_05.asf";
songs[17]="
http://a425.v8384d.c8384.g.vm.akamaistream...5_05.asf";
songs[18]="
http://a425.v8384d.c8384.g.vm.akamaistream...1_05.asf";
songs[19]="
http://a425.v8384d.c8384.g.vm.akamaistream...3_05.asf";
songs[20]="
http://boss.streamos.com/wmedia/interscope...eart.asx";
songs[21]="
http://www.dazzled.com/wilson02/coldplay%2...ion).mp3";
songs[22]="
http://a420.v8383d.c8383.g.vm.akamaistream...9_04.asf";



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>]

if it doesnt work this time after i get some replies maybe someone can do it for me....

-thanx!
-stef
talcumpowder
..... None of your links work.
technicolour
None of the links work. Those links break all the time. and USE THE CODEBOX! next time. Plz. It doesn't strech the forum. _smile.gif
ckling
wrong post, plx del it.
ckling
the script should be like this :


for the links of the songs, copy and paste again,
it shouldn't have ... if u use it in xanga.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.