Music Player Help, Trigger Button wont Work |
![]() ![]() |
Music Player Help, Trigger Button wont Work |
Jul 9 2004, 01:58 PM
Post
#1
|
|
|
Newbie ![]() Group: Member Posts: 2 Joined: Jul 2004 Member No: 28,687 |
hey im sorry im new to this but bear with me. i put the following code in and put the music i had on my host in the url but on my xanga page the triggers for play, stop and pause wont do any thing, any help?
table border="1" cellspacing="0" cellpadding="4" width="100%" class="left"><tr><th valign="top" align="left" class="left"><b>Music</th></tr><tr><td valign="top" class="left"><font face="Arial" style="font-variant: small-caps;" color="CC3366" size=5><b>Music Player...</b></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: 8pt; BACKGROUND:#ffffff; border: 1px solid CC3366; WIDTH: 100%; height: 150px; COLOR: CC3366; font-face: Arial;" name="playlist" size="3"> <option value="0">Taking Back Sunday-Timberwolves At New Jersey</option> <option value="1">Blink 182-All Of This</option> <option value="2">Brand New-The Boy Who Blocked His Own Shot</option> <option value="3"> Finch-Project Mayhem</option> <option value="4"> From Atumn To Ashes- Milligram Smile</option> <option value="5">From Autumn To Ashes-Mercury Rising</option> <option value="6"> Mest- Walking On Broken Glass</option> <option value="7"> Senses Fail-Steven </option> <option value="8"> Something Corporate-Hurricane</option> </select></p> </form> <a onclick="play(document.forms['form'].playlist);"> <img src="http://www.imageshack.us/img1/51/playbtn.PNG" border="0" name="butplay" width="15" height="15"></a> <a onclick="document.CPplayer1.Pause(); playstate=2;"> <img src="http://imageshack.us/img1/3707/pausebtn.PNG" border="0" name="butpause" width="15" height="15"></a> <a onclick="document.CPplayer1.Stop(); playstate=1;"> <img src="http://www.imageshack.us/img1/2434/stopbtn.PNG" 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]="URL http://home.earthlink.net/~emoboy67/images...imberwolves.asx "; songs[1]="URL http://home.earthlink.net/~emoboy67/images/Blink 182-All Of This.asx "; songs[2]="URL http://home.earthlink.net/~emoboy67/images/Brand New-The Boy.asx "; songs[3]=" URL http://home.earthlink.net/~emoboy67/images...ject.asx"; songs[4]=" URL http://home.earthlink.net/~emoboy67/images/FATA-Milligram Smile.asx"; songs[5]=" URL http://home.earthlink.net/~emoboy67/images/FATA-Mercury Rising.asx"; songs[6]=" URL http://home.earthlink.net/~emoboy67/images/Mest-Walking On Glass.asx"; songs[7]=" URL http://home.earthlink.net/~emoboy67/images/Senses Fail-Stephen.asx "; songs[8]=" URL http://home.earthlink.net/~emoboy67/images...cane.asx"; else{ var randsg = 0; //replace 0 w/ the song U want it to start with 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> |
|
|
|
![]() ![]() |