View Full Version : Drop Down Playlist- not playing


bLuRoSeZ
11-27-2005, 08:58 PM
i swear i did this right... it shows on my xanga, but it just wont play! it never plays... and i dont know why. the links are fine and i'm pretty sure the code is fine as well, but can anyone tell me why my Drop Down Playlist isnt playing?

here's my xanga (http://www.xanga.com/x_aznpinay_x), and the code i used for my playlist:


<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">Merry Christmas- Nsync</option>
<option value="1">All i want for Christmas is you</option>
<option value="2">O Come all Ye faithful</option>
<option value="3">I saw mommy kissing...</option>
<option value="4">Let it Snow</option>
<option value="5">White Christmas</option>
<option value="6">Carol of the Bells</option>
<option value="7">Silent Night</option>
<option value="8">Have yourself a Merry...</option>
<option value="9">Jingle Bell Rock</option>
<option value="10">Rockin Around...</option>
<option value="11">Do You Hear what...</option>
<option value="12">Winter Wonderland</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();

// Add song URLs here
songs[0]="http://www.songsandpoems.com/natal/traduzidas/nsync_merry.wma";
songs[1]="http://student-www.uchicago.edu/~roger1/Mariah%20Carey%20-%20All%20I%20Want%20For%20Christmas%20Is%20You%20( 1).mp3";
songs[2]="http://www.kelleydolan.com/audio/nhlis00_128k/KELLEY_DOLAN-OComeall.mp3";
songs[3]="http://www.smokinmka.com/xmas/I%20Saw%20Mommy%20Kissing%20Santa%20Claus%20-%20Andy%20Williams.mp3";
songs[4]="http://www.karenandjay.com/holidays/07-let_it_snow.mp3";
songs[5]="http://richies-place.com/media/WhiteChristmas-Motown.wma";
songs[6]="http://www.mysubprofile.com/peax/storage/Trans%20Siberian/Metallica%20feat.%20Trans%20Siberian%20Orchestra%2 0-%20Carol%20of%20the%20Bells.mp3";
songs[7]="http://www.jonlocker.100megsdns.com/jonpage/sounds/mp3/Silent%20Night.mp3";
songs[8]="http://www.icompositions.com/music/data/723/22306Have_Yourself_A_Merry_Little_Christmas.mp3";
songs[9]="http://users.igl.net/msluckysgirl/xmas_songs_-_Jingle_Bell_Rock.mp3";
songs[10]="http://richies-place.com/media/Rockin.wma";
songs[11]="http://theclaydawgs.com/Charity/Audio_Video/DoYouHearWhatIHear.wma";
songs[12]="http://www.anos60.com/usa/johnny_mathis/Winter_Wonderland.WMA";

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>

please? someone help... i'd love you forever :]

PUG_gurl
12-24-2005, 05:48 PM
I don't really think it has anything to do with the code, i think its just that the music URLS are bad. I fixed it (and replaced 4 songs) so here's my version, enjoy!..... http://www.xanga.com/PUG_gurl

<!-- 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">All I Want for Christmas is You (Mariah Carey)</option>
<option value="1">Baby Its Cold Outside (Jessica&Nick duet)</option>
<option value="2">O Come all Ye faithful</option>
<option value="3">Santa Baby</option>
<option value="4">Let it Snow</option>
<option value="5">White Christmas</option>
<option value="6">Mr. Grinch</option>
<option value="7">Silent Night</option>
<option value="8">Have yourself a Merry...</option>
<option value="9">Jingle Bell Rock</option>
<option value="10">Rockin Around...</option>
<option value="11">Do You Hear what...</option>
<option value="12">Winter Wonderland</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]="http://www.ilovewavs.com/Holidays/Xmas/tf/All%20I%20Want%20for%20Christmas%20for%20Is%20You% 20-%20Mariah%20Carey.wav";
songs[1]="http://users.igl.net/dogberry3/03_Lachey,_Nick_-_Rejoyce__The_Christmas_Album_-_Baby,_It::s_Cold_Outside.mp3";
songs[2]="http://www.kelleydolan.com/audio/nhlis00_128k/KELLEY_DOLAN-OComeall.mp3";
songs[3]="http://www.sappylovesongs.net/files/SantaBabyMadonna.wav";
songs[4]="http://www.karenandjay.com/holidays/07-let_it_snow.mp3";
songs[5]="http://richies-place.com/media/WhiteChristmas-Motown.wma";
songs[6]="http://northpole2000.tripod.com/mrgrinch.mp3";
songs[7]="http://www.jonlocker.100megsdns.com/jonpage/sounds/mp3/Silent%20Night.mp3";
songs[8]="http://www.icompositions.com/music/data/723/22306Have_Yourself_A_Merry_Little_Christmas.mp3";
songs[9]="http://users.igl.net/msluckysgirl/xmas_songs_-_Jingle_Bell_Rock.mp3";
songs[10]="http://richies-place.com/media/Rockin.wma";
songs[11]="http://theclaydawgs.com/Charity/Audio_Video/DoYouHearWhatIHear.wma";
songs[12]="http://www.anos60.com/usa/johnny_mathis/Winter_Wonderland.WMA";



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