Help
-
Search
-
Members
-
Calendar
Full Version:
can anyone check my script for errors?
Forums
>
Resource Center
>
Support Center
>
Xanga Support
>
Xanga Resolved Topics
sk7rampage
May 13 2005, 02:45 PM
all these songs i uploaded them....yet most work and some dont, i was just wondering if i made an error and maybe someone can check them for me...
the songs that dont work are
1. all thats left
2. see u in the shallow
3. silhouette
4. stare at the sun
5. unknown track
heres the script...
<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">Dashboard Confessional - Hands Down</option>
<option value="1">Jimmy Eats World - Pain</option>
<option value="2">Matchbook Romance - Promise</option>
<option value="3">The Spill Canvas - Homesick</option>
<option value="4">The Spill Canvas - All Hail The Heartbreaker</option>
<option value="5">Thrice - All Thats Left</option>
<option value="6">Thrice - See You In The Shallow</option>
<option value="7">Thrice - Silhouette</option>
<option value="8">Thrice - Stare at the Sun</option>
<option value="9">Thrice - T&C</option>
<option value="10">The Used - Lunacy Fringe</option>
<option value="11">Unkown Track - ??</option>
</select><br>
<input TYPE="BUTTON" NAME="darkplay" VALUE="bump it" OnClick="play(document.forms['form'].playlist);">
<input TYPE="BUTTON" NAME="darkpause" VALUE="hold it" OnClick="document.darkplayer.pause(); playstate=2;">
<input TYPE="BUTTON" NAME="darkstop" VALUE="stop it" 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://home.ripway.com/2005-5/306054/music/DashboardConfessionals-HandsDown.mp3";
songs[1]="http://home.ripway.com/2005-5/306062/music/JimmyEatWorld-Pain.mp3";
songs[2]="http://home.ripway.com/2005-5/306054/music/MatchbookRomance-Promise.mp3";
songs[3]="http://home.ripway.com/2005-5/306054/music/TheSpillCanvas-Homesick.mp3";
songs[4]="http://home.ripway.com/2005-5/306062/music/TheSpillCanvas-AllHailtheHeartbreaker.mp3";
songs[5]="http://home.ripway.com/2005-5/306054/music/Thrice-AllThatsLeft.mp3";
songs[6]="http://home.ripway.com/2005-5/306062/music/Thrice-SeeYouInTheShallows.mp3";
songs[7]="http://home.ripway.com/2005-5/306054/music/Thrice-Silhouette.mp3";
songs[8]="http://home.ripway.com/2005-5/306062/music/Thrice-StareattheSun.mp3";
songs[9]="http://home.ripway.com/2005-5/306054/music/Thrice-TC.mp3";
songs[10]="http://home.ripway.com/2005-5/306062/TheUsed-LunacyFringe.mp3";
songs[11]="http://home.ripway.com/2005-5/306062/music/05Track5.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>
QUOTE
please use a codebox!
mona lisa
May 13 2005, 03:27 PM
Moved to Xanga Help
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please
click here
.