View Full Version : some questions about songs and playlists


KuSh KuSh
10-10-2004, 09:57 PM
ok first question:
i know ive seen a bunch of codes for playlists, but i have no idea where to put them and the people always say that they dont work.... so what is the code for a playlist and where do i put it?

next question:
does anyone know where to find the songs "breakaway" by kelly clarkson
or "my goodies" i dont know who sings that?


thank you for all of your help in advance...

p.s. i need the code for a just music playlist, not a video one.

oincubusx
10-10-2004, 10:23 PM
welll first my goodies is by ciara ft. peety pablo.. (sp) and uhh for those try xanga.com/xanga_music or xanga.com/a__music__x .... or try search this forum for more places...

and for the music playlists... try this:

<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:#000000; WIDTH: 180; COLOR: #ffffff; font-face: arial; height:174" name="playlist" size="1">
<option value="0">SONG TITLE 1</option>
<option value="1">SONG TITLE 2</option>
<option value="2">SONG TITLE 3</option>
<option value="3">SONG TITLE 4</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 = 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]="SONG URL 1";
songs[1]="SONG URL 2";
songs[2]="SONG URL 3";
songs[3]="SONG URL 4";

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>