Help - Search - Members - Calendar
Full Version: Can someone do me a favor
Forums > Resource Center > Support Center > Xanga Support > Xanga Resolved Topics
patrick004
I'm not sure if my music palylist on my playlist is working. I don't think so.

And here's the code:
CODE
<DIV align="center" valign="middle" style="BORDER-RIGHT: #660000 1px solid; BORDER-TOP: #660000 1px solid; FILTER: alpha(opacity=100%); OVERFLOW: auto; BORDER-LEFT: #660000 1px solid; WIDTH: 850px; BORDER-BOTTOM: #660000 1px solid; HEIGHT: 470px; BACKGROUND-COLOR:
#000000">
<table border="1" cellspacing="0" cellpadding="4" width="50%" class="left"><tr><th valign="top" align="left" class="left"><b>Patrick's Playlist v1</th></tr><tr><td valign="top" class="left"><font face="Verdana" style="font-variant: small-caps;" color="#666699" size=3>Choose a song</font>
<object id="CPplayer1" 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="1">
<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 style="FONT-SIZE: 10pt; BACKGROUND:#000000; border: 2px solid #cc0000; WIDTH: 100%; height: 100px; COLOR: #666699; font-face: verdana;" name="playlist" size="6">
    <option value="0">Apokalipsis – ‘Sang Linggo</option>
    <option value="1">Beastie Boys – The Sounds of Science</option>
    <option value="2">Ben Harper & The Blind Boys of Alabama – Wicked Man</option>
    <option value="3">Boys II Men – Pass You By</option>
    <option value="4">Chito Miranda – This Guy’s In Love With You, Pare</option>
    <option value="5">Coldplay – The Scientist</option>
    <option value="6">Denmark ft Gloc-9 & Mista Blaze – Takbo</option>
    <option value="7">Eraserheads – Poorman’s Grave</option>
    <option value="8">Foreign Exchange ft Median – Be Alright</option>
    <option value="9">Franz Ferdinand – Take Me Out</option>
    <option value="10">Guns N’ Roses – Sweet Child Of Mine</option>
    <option value="11">John Legend – Refuge (When It’s Cold Outside)</option>
    <option value="12">Jurassic 5 ft Nelly Furtado – Thin Line</option>
    <option value="13">Linkin Park – High Voltage (Live)</option>
    <option value="14">Maroon 5 – Woman</option>
    <option value="15">Mos Def – Umi Says</option>
    <option value="16">Mountain Brothers – Galaxies: The Next Level</option>
    <option value="17">Mya ft Tre and Fatlip from The Pharcyde – Fallen (Remix)</option>
    <option value="18">Outkast - Aquemini</option>
    <option value="19">Parokya Ni Edgar- Gising Na</option>
    <option value="20">RJD2 – True Confessions</option>
    <option value="21">Sage Francis – Inherited Scars</option>
    <option value="22">The Beatles – Hey Jude</option>
    <option value="23">The Pharcyde – Passin’ Me By</option>
    <option value="24">The Speaks – Life’s A Joke</option>
    <option value="25">The Streets – Blinded By The Lights</option>
    <option value="26">Tre Hardson ft Kim Hill – Just Can’t Hold</option>
    </select></p>
</form>
  <a onclick="play(document.forms['form'].playlist);">
  <img src="http://img.photobucket.com/albums/v122/patrickM/play.jpg" border="0" name="butplay" width="15" height="15"></a>
  <a onclick="document.CPplayer1.Pause(); playstate=2;">
  <img src="http://img.photobucket.com/albums/v122/patrickM/paus.jpg" border="0" name="butpause" width="15" height="15"></a>
<a onclick="document.CPplayer1.Stop(); playstate=1;">
  <img src="http://img.photobucket.com/albums/v122/patrickM/stop.jpg" border="0" name="butstop" width="15" height="15"></a></td>




<script language="JavaScript">
<!--

function SymError()
{
return true;
}

window.onerror = SymError;

//-->
</script>

<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]="http://fileserv4.soundclick.com/fastk6/HiD/macncheese+linggo.mp3";
songs[1]="http://fileserv1.soundclick.com/fastk6/HiG/macncheese+sscience.mp3";
songs[2]="http://fileserv5.soundclick.com/fastk6/HiG/macncheese+wicked.mp3";
songs[3]="http://fileserv1.soundclick.com/fastk6/HiF/macncheese+passuby.mp3";
songs[4]="http://fileserv4.soundclick.com/fastk6/HiG/macncheese+pare.mp3";
songs[5]="http://fileserv4.soundclick.com/fastk6/HiD/macncheese+scientist.mp3
songs[6]="http://fileserv4.soundclick.com/fastk6/HiF/macncheese+takbo.mp3";
songs[7]="http://fileserv4.soundclick.com/fastk6/HiD/macncheese+grave.mp3";
songs[8]="http://fileserv4.soundclick.com/fastk6/HiD/macncheese+bariulhkjfgj.mp3";
songs[9]="http://fileserv5.soundclick.com/fastk6/HiF/macncheese+takout.mp3";
songs[10]="http://fileserv7.soundclick.com/fastk6/HiD/macncheese+sweethijami.mp3";
songs[11]="http://fileserv4.soundclick.com/fastk6/HiD/macncheese+refuge.mp3";
songs[12]="http://fileserv4.soundclick.com/fastk6/HiD/macncheese+thinlinea.mp3";
songs[13]="http://fileserv5.soundclick.com/fastk6/HiF/macncheese+voltagelive.mp3";
songs[14]="http://fileserv1.soundclick.com/fastk6/HiF/macncheese+woman.mp3";
songs[15]="http://fileserv4.soundclick.com/fastk6/HiE/macncheese+galaxy.mp3";
songs[16]="http://fileserv4.soundclick.com/fastk6/HiD/macncheese+umi.mp3";
songs[17]="http://fileserv1.soundclick.com/fastk6/HiG/macncheese+fall.mp3";
songs[18]="http://fileserv1.soundclick.com/fastk6/HiG/macncheese+quemini.mp3";
songs[19]="http://fileserv4.soundclick.com/fastk6/HiD/macncheese+gising.mp3";
songs[20]="http://fileserv5.soundclick.com/fastk6/HiF/macncheese+tconfessions.mp3";
songs[21]="http://fileserv1.soundclick.com/fastk6/HiD/macncheese+scars.mp3";
songs[22]="http://fileserv5.soundclick.com/fastk6/HiF/macncheese+jude.mp3";
songs[23]="http://fileserv4.soundclick.com/fastk6/HiG/macncheese+passinmebyyyy.mp3";
songs[24]="http://fileserv1.soundclick.com/fastk6/HiF/macncheese+lifejoke.mp3";
songs[25]="http://fileserv5.soundclick.com/fastk6/HiF/macncheese+blindedlights.mp3
songs[26]="http://fileserv1.soundclick.com/fastk6/HiG/macncheese+justcanthold.mp3";

if (shuffle == 1) {
var randsg = Math.floor(Math.random()*songs.length);
document.CPplayer1.FileName = songs[randsg];
document.CPplayer1.scr = songs[randsg];
document.forms['form'].playlist.options[randsg].selected = true;
}
function play(list) {
if (playstate == 2) {
document.CPplayer1.Play();
} else {
var snum = list.options[list.selectedIndex].value
document.CPplayer1.FileName = songs[snum];
document.CPplayer1.scr = songs[snum];
}
playstate = 1;
}
//-->
  </script></td></tr></table></br>
lovescream
No. It doesn't work. The buttons don't even click! Is that an image?!?!?! It looks like one.
patrick004
Can anybody help?


They are buttons. They don't have that "clicking" effect, but they are buttons. They've always worked. But I changed my playlist recently and somehow the music isn't playing anymore.

Well, is it possbile to alter the code to make it work?
largosama
have you tried this player?
XxArsonFreakxX
Ok First of all you have a few system errors on here such as these........
function SymError()
{
return true;
}
window.onerror = SymError;
.....and second of all your buttons are pictures and u have ur urls as a seperate script from the song titles so i have no clue what u did wrong my suggestion is just to get a new code and start off all over
patrick004
Alright, I used a different code.

Now is it working?

Here's what I put:
crashingg
yup its working perfectly! =)
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.