Log In · Register

 
Can you use a code for a music player like you do on xanga?
LeatherWings
post May 27 2006, 09:40 PM
Post #1


Member
**

Group: Member
Posts: 29
Joined: Nov 2005
Member No: 289,536



I tried copying my music player code from xanga to my myspace with no luck. So is it possible to add a music player that easily I can't get one to work that can have infinite songs?

I used one of the ones from this site, I'm trying to get the code, but my xanga won't load, my comp's working very poorly today(has been for a week now)

<!-- begin code provided by createblog.com -->

<!-- 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">Rise Against - Alive and Well</option>
<option value="1">Rise Against - My Life Inside Your Heart</option>
<option value="2">Rise Against - Great Awakening</option>
<option value="3">Rise Against - Six Ways 'Til Sunday</option>
<option value="4">Rise Against - 401 Kill</option>
<option value="5">Rise Against - The Art of Losing</option>
<option value="6">Rise Against - Remains of Summer Memories</option>
<option value="7">Rise Against - The Unraveling</option>
<option value="8">Rise Against - Reception Fades</option>
<option value="9">Rise Against - Stained Glass and Marble</option>
<option value="10">Rise Against - Everchanging</option>
<option value="11">Rise Against - Sometimes Selling Out is Giving Up</option>
<option value="12">Rise Against - 3 Day Weekend</option>
<option value="13">Rise Against - 1000 Good Intentions</option>
<option value="14">Rise Against - Weight of Time</option>
<option value="15">Rise Against - Faint Resemblance</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.freewebtown.com/leatherwings/playlists/5535/16767.mp3";
songs[1]="http://www.freewebtown.com/leatherwings/playlists/5535/16768.mp3";
songs[2]="http://www.freewebtown.com/leatherwings/playlists/5535/16769.mp3";
songs[3]="http://www.freewebtown.com/leatherwings/playlists/5535/16770.mp3";
songs[4]="http://www.freewebtown.com/leatherwings/playlists/5535/16771.mp3";
songs[5]="http://www.freewebtown.com/leatherwings/playlists/5535/16772.mp3";
songs[6]="http://www.freewebtown.com/leatherwings/playlists/5535/16773.mp3";
songs[7]="http://www.freewebtown.com/leatherwings/playlists/5535/16774.mp3";
songs[8]="http://www.freewebtown.com/leatherwings/playlists/5535/16775.mp3";
songs[9]="http://www.freewebtown.com/leatherwings/playlists/5535/16776.mp3";
songs[10]="http://www.freewebtown.com/leatherwings/playlists/5535/16778.mp3";
songs[11]="http://www.freewebtown.com/leatherwings/playlists/5535/16779.mp3";
songs[12]="http://www.freewebtown.com/leatherwings/playlists/5535/16780.mp3";
songs[13]="http://www.freewebtown.com/leatherwings/playlists/5535/16781.mp3";
songs[14]="http://www.freewebtown.com/leatherwings/playlists/5535/16782.mp3";
songs[15]="http://www.freewebtown.com/leatherwings/playlists/5535/16784.mp3";

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

<!-- end code provided by createblog.com -->




There's the code(I don't know how to add one of those fancy code thingys...
 

Posts in this topic


Closed TopicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members: