Having difficulty making this script work for me |
Having difficulty making this script work for me |
![]()
Post
#1
|
|
![]() Senior Member ![]() ![]() ![]() ![]() Group: Member Posts: 151 Joined: Jun 2004 Member No: 24,011 ![]() |
This is the code. When clicking on a song, the song won't load.
CODE <!-- begin code provided by createblog.com -->
<table border="1" cellspacing="0" cellpadding="4" width="25%" class="left"><tr><th valign="top" align="left" class="left"><b>Still under construction...</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 #666699; WIDTH: 100%; height: 80px; COLOR: #666699; font-face: verdana;" name="playlist" size="4"> <option value="0">Linkin Park - Dedicated</option> <option value="1">Outsidaz - Macosa</option> <option value="2">D12 - B N U</option> <option value="3">Maroon 5 - Woman(prod. by Kanye West)</option> <option value="4">The Pharcyde - Ya Mama</option> <option value="5">King Gordy - The Pain(prod. by Eminem)</option> <option value="6">The Speaks(local band from DC) - Life's A Joke</option> <option value="7">Mountain Brothers - Galaxies: The Next Level</option> <option value="8">Madd Poets - Utak, Lapis, At Papel</option> </select></p> </form> </td> <script language="JavaScript"> <!-- function SymError() { return true; } window.onerror = SymError; //--> </script> <script language="JavaScript"> <!-- var playstate = 1; shuffle = 1; songs=new Array(8); songs[0]="http://fileserv5.soundclick.com/fastg6/HiG/macncheese+dedicatd.mp3"; songs[1]="http://fileserv4.soundclick.com/fastg/HiE/macncheese+cosa2.mp3"; songs[2]="http://fileserv1.soundclick.com/fastg6/HiF/macncheese+bnulowerquality.mp3"; songs[3]="http://fileserv1.soundclick.com/fastg6/HiF/macncheese+woman.mp3"; songs[4]="http://fileserv1.soundclick.com/fastg6/HiF/macncheese+mama.mp3"; songs[5]="http://fileserv4.soundclick.com/fastg6/HiE/macncheese+pain.mp3"; songs[6]="http://fileserv1.soundclick.com/fastg6/HiF/macncheese+lifejoke.mp3"; songs[7]="http://fileserv4.soundclick.com/fastg6/HiE/macncheese+galaxy.mp3"; songs[8]="http://fileserv1.soundclick.com/fastg6/HiF/macncheese+ulp.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> <!-- end code provided by createblog.com --> |
|
|
![]() ![]() |