Help
-
Search
-
Members
-
Calendar
Full Version:
My music player quit on me
Forums
>
Resource Center
>
Support Center
>
Xanga Support
>
Xanga Resolved Topics
scremoxcorexx
Apr 16 2005, 03:59 PM
I was editing my xanga then noticed it wouldnt even play for me someone help me out eep
<!-- begin code provided by createblog.com -->
<OBJECT ID="Player" height="0" width="0" CLASSID="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6">
<PARAM NAME="uiMode" VALUE="invisible">
<PARAM NAME="Autostart" VALUE="False">
</object>
<FORM ID="form">
<SELECT ID="playlist" size="1">
<!-- Add song info that appears in drop down list here -->
<option value="0"><3Bleed no more</option>
<option value="1"><3My my metrocard
</option>
<option value="2"><3Year Zero </option>
<option value="3"><3Brooklyn Is Burning</option>
<option value="4"><3There is</option>
<option value="5"><344 caliber love letter</option>
<option value="6"><3Giving up </option>
<option value="7"><3stake out</option>
<option value="8"><3Note To Self </option>
<option value="9"><3Hella nervous</option>
<option value="10"><3autumns monolague </option>
<option value="11"><3Playgirl </option>
<option value="12"><3Phone call </option>
<option value="13"><3Okay i beleive you but my tommy gun dont </option>
<option value="14"><3Automatic Love </option>
<option value="15"><3I dont mind </option>
<option value="16"><3Terrible Lie</option>
<option value="17"><3beating of your heart </option>
<option value="18"><3Finding out true love is blind </option>
<option value="19"><3Mad World </option>
<option value="20"><3River Below </option>
<option value="21"><3Deception </option>
</SELECT>
<BR>
<BUTTON ID="BackButton" onClick="Back(forms['form'].playlist);"> << </BUTTON>
<BUTTON ID="PlayPauseButton" onClick="PlayPause(forms['form'].playlist);"><FONT color="green"> Play </FONT></BUTTON>
<BUTTON ID="NextButton" onClick="Next(forms['form'].playlist);"> >> </BUTTON>
<BUTTON ID="StopButton" onclick="Stop();"><FONT color="maroon">Stop</FONT></BUTTON>
<b><font size="3" color="black">Shuffle</font></b><INPUT TYPE=checkbox CHECKED ID="ShuffleSwitch" onclick="ToggleShuffle(this);" value="ON">
</FORM>
</CENTER>
<comment ID="PlayHTML"><FONT color="green"> Play </FONT></comment>
<comment ID="ShuffleOnHTML"><INPUT TYPE=checkbox CHECKED ID="ShuffleSwitch" onclick="ToggleShuffle(this);"></comment>
<comment ID="ShuffleOffHTML"><INPUT TYPE=checkbox UNCHECKED ID="ShuffleSwitch" onclick="ToggleShuffle(this);"></comment>
<script ID="Main" Language="JavaScript">
var songs = new Array();
//*******************************//
//****** CHANGEABLE STUFF *******//
//*******************************//
var shuffle = false; // false = shuffle off, true = shuffle on
var autoStart = true; // false = autoStart off, true = autoStart on
var numberTracks = true; // true = place track number in front of list items, false = no track numbers
// Add song URLs here (make sure it matches up with the order you have for song info, and urls need quotes):
songs[0]="http://thedowntown.com/media/silverstein.mp3";
songs[1]="http://flashrock.com/music/uploads/attachments/1094503034.mp3";
songs[2]="http://a420.v8383d.c8383.g.vm.akamaistream.net/7/420/8383/3b858b51/mtvrdstr.download.akamai.com/8512/wmp/4/23105/4336_1_11_04.asf";
songs[3]="http://www.warnerreprise.com/asx/headautomatica_11nm24_brooklynisburning_128-a.asx";
songs[4]="http://a420.v8383d.c8383.g.vm.akamaistream.net/7/420/8383/3b858b51/mtvrdstr.download.akamai.com/8512/wmp/0/22864/26484_1_10_04.asf";
songs[5]
="http://www.evrhq.com/mp3/alexisonfire_-_44_caliber_love_letter.mp3";
songs[6]
="http://flashrock.com/music/uploads/attachments/1110703158.mp3";
songs[7]
="http://freezepop.net/listen/songs/Stakeout_Donnerschlag_rmx.mp3";
songs[8]
="http://media-01.epitaph.com/From_First_To_Last/From_First_To_Last-Note_To_Self.mp3";
songs[9]
="http://killrockstars.com/bands/gravytrain/audio/HellaNervous.mp3";
songs[10]
="http://a420.v8383d.c8383.g.vm.akamaistream.net/7/420/8383/3b858b51/mtvrdstr.download.akamai.com/8512/wmp/3/22015/28635_1_7_04.asf";
songs[11]
="http://web3.epitonic.com/files/reg/songs/mp3/Ladytron-Playgirl.mp3";
songs[12]
="http://a420.v8383d.c8383.g.vm.akamaistream.net/7/420/8383/3b858b51/mtvrdstr.download.akamai.com/8512/wmp/5/23066/29981_1_8_04.asf";
songs[13]
="http://a420.v8383d.c8383.g.vm.akamaistream.net/7/420/8383/3b858b51/mtvrdstr.download.akamai.com/8512/wmp/1/24769/28069_1_4_04.asf";
songs[14]
="http://www.redmusic.com/streams/LolaRay/AutomaticGirl.asx
";
songs[15]
="http://roadrunnerrecords.de/shared/downloads/EighteenVisions/18Visions_I_Dont_Mind.mp3";
songs[16]
="http://rmparadise.net/music/pnm.cgi?srv=2&art=82&alb=7106&dsk=1&trk=2&tl=true&wtv-title=Rock+And+Metal+Paradise";
songs[17]
="http://www.warnerreprise.com/asx/headautomatica_beatingheartbaby_128-a.asx";
songs[18]
="http://a420.v8383d.c8383.g.vm.akamaistream.net/7/420/8383/3b858b51/mtvrdstr.download.akamai.com/8512/wmp/5/26394/30569_1_2_04.asf";
songs[19]
="http://boss.streamos.com/wmedia/universalmotown/universal/gary_jules/audio/trading_snakeoil_for_wolftickets/12mad_world.asx";
songs[20]
="http://webjay.org/insta.asx?url=http://a420.v8383d.c8383.g.vm.akamaistream.net/7/420/8383/3b858b51/mtvrdstr.download.akamai.com/8512/wmp/2/24789/28100_1_7_05.asf";
songs[21]
="http://homepage.mac.com/diwilliams/.Music/tigre.mp3"; //*******************************//
//*******************************//
// Initializations //
with (document){
var length = forms['form'].playlist.length;
if(numberTracks){
for (var i = 0; i < length; i++){
forms['form'].playlist.options[i].innerHTML = (i+1) + " - " + forms['form'].playlist.options[i].innerHTML;
}
}
if (shuffle) {
var randsg = Math.floor(Math.random()*songs.length);
Player.url = songs[randsg];
forms['form'].playlist.options[randsg].selected = true;
forms['form'].ShuffleSwitch.outerHTML = ShuffleOnHTML.innerHTML;
}
else {
forms['form'].ShuffleSwitch.outerHTML = ShuffleOffHTML.innerHTML;
Player.url = songs[0];
}
if(autoStart){
var snum = forms['form'].playlist.selectedIndex;
if(Player.url != songs[snum]){
Player.url = songs[snum];
}
Player.controls.Play();
}
}
// Functions //
// Discription: "PlayPause" will toggle playing and pausing if the same song is still selected,
// otherwise it will load the newly selected song
function PlayPause(list) {
var snum = list.selectedIndex;
if((Player.url == songs[snum] && Player.url != "") && Player.playState != 1){
if(Player.playState == 3){
Player.controls.Pause();
}
else {
Player.controls.Play();
}
}
else {
Player.url = songs[snum];
Player.controls.Play();
}
}
// Discription: "Next" will move to the next music file if shuffle is off
// otherwise it will load a random song. Calls PlayPause to start music.
function Next(list) {
var snum = list.selectedIndex;
if (!shuffle) {
if (snum == list.length-1) {
snum = -1;
}
snum++;
}
else {
var temp;
do{
temp = Math.floor(Math.random()*songs.length);
} while(temp == snum);
snum = temp;
}
list.options[snum].selected = true;
PlayPause(list);
}
// Discription: "Back" does the same thing as "Next" but moves backwads
// through the list. If shuffle is on then picks a random song.
function Back(list) {
var snum = list.selectedIndex;
if (!shuffle) {
if (snum == 0){
snum = list.length;
}
snum--;
}
else {
var temp;
do{
temp = Math.floor(Math.random()*songs.length);
} while(temp == snum);
snum = temp;
}
list.options[snum].selected = true;
PlayPause(list);
}
// Discription: Self explanitory.
function Stop(){
Player.controls.Stop();
}
// Discription: Makes the shuffle flag the same as the status of the CheckBox
// The status of the checkbox (true/false) indicates if the box is checked
function ToggleShuffle(CheckBox) {
shuffle = CheckBox.status;
}
</SCRIPT>
<script ID="StateChangeHandler" Language = "JavaScript" For = "Player" Event = playStateChange(NewState)>
// Description: This is an interupt handler used to handle instances when the
// state of the player changes to play or stop for example.
//STATE.innerText = NewState;
switch(NewState){
case 8: // Handles player after it just finishes playing through a song
var num = document.forms['form'].playlist.selectedIndex;
if (!shuffle){
if(num == document.forms['form'].playlist.length-1){
num = -1;
}
num++;
}
else {
var temp;
do{
temp = Math.floor(Math.random()*songs.length);
} while(temp == num);
num = temp;
}
document.forms['form'].playlist.options[num].selected = true;
PreviousState = NewState;
break;
case 1: // Handles player after it stops
if(PreviousState == 8){
var num = document.forms['form'].playlist.selectedIndex;
Player.settings.autoStart = true;
Player.url = songs[num];
PreviousState = NewState;
}
else if (PreviousState != 3 && PreviousState != 2){
Player.controls.Play();
Player.settings.autoStart = false;
}
else{
forms['form'].PlayPauseButton.innerHTML = PlayHTML.innerHTML;
}
break;
case 3: // Handles player after it starts to play
PreviousState = NewState;
forms['form'].PlayPauseButton.innerHTML = "Pause";
shuffle = document.forms['form'].ShuffleSwitch.status;
break;
case 2: // Handles player after being paused
PreviousState = NewState;
forms['form'].PlayPauseButton.innerHTML = PlayHTML.innerHTML;
break;
default:
}
</SCRIPT>
<!-- end code provided by createblog.com -->
mona lisa
Apr 16 2005, 04:14 PM
Please don't make multiple topics on the same thing.
http://www.createblog.com/forums/index.php?showtopic=75563
topic closed
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please
click here
.