PDA

View Full Version : I Need Help!!!!!!!!


marichino_freedom
12-01-2006, 07:02 PM
HTML.....it is evil. i have a code on my xanga to play music, but the buttons dont work....every thing else is set up correctly, but i am confused.....help help, someone help!

this is the code:

<OBJECT id=darkplayer codeBase=http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701 type=application/x-oleobject height=44 standby="Loading Microsoft Windows Media Player componentsactivex/controls/mplayer/en/nsmp2inf.cab#Ver" width=195 classid=CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95></OBJECT>
<FORM name=form>
<P style="TEXT-ALIGN: center"><SELECT style="FONT-SIZE: 8pt; BACKGROUND: #000000; WIDTH: 200px; COLOR: #00ccff; font-face: arial" size=1 name=playlist>
<OPTION value=0 selected>Figlio Perduto</OPTION>
<OPTION value=1>The Council of Elrond (LOTR)</OPTION>
<OPTION value=2>Dante's Prayer</OPTION>
<OPTION value=3>Tell My Ma</OPTION>
<OPTION value=4>The Hills of Connemara</OPTION>
<OPTION value=5>Oceano</OPTION>
<OPTION value=6>My Next 30 Years</OPTION>
<OPTION value=7>Have You Ever</OPTION>
<OPTION value=8>Take This Life</OPTION>
<OPTION value=9>One of These Days</OPTION>

</SELECT><BR><INPUT onclick="play(document.forms['form'].playlist);" type=button value=.pLaY. name=darkplay>
<INPUT onclick="document.darkplayer.Pause(); playstate=2;" type=button value=.PaUsE. name=darkpause>
<INPUT onclick="document.darkplayer.Stop(); playstate=2;" type=button value=.StOp. name=darkstop></P></FORM>
<P><!--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 playsongs=new Array();
songs[0]=http://h1.ripway.com/marichino/12FiglioPerduto.wma";
songs[1]="http://h1.ripway.com/marichino/10TheCouncilofElrondFeaturingAníron(ThemeforAragor nandArwen).wma";
songs[2]="http://h1.ripway.com/marichino/07Track7.wma";
songs[3]="http://h1.ripway.com/marichino/tellmyma~therankinfamily.mp3";
songs[4]="http://h
.ripway.com/marichino/Various_Artists_The_Best_Irish_Party_Ever_14_Hills _Of_Connemara__Tom_Donovan.mp3";
songs[5]="http://h1.ripway.com/marichino/01Oceano.wma";
songs[6]="http://h1.ripway.com/marichino/mynext30years~timmcgraw.mp3";
songs[7]="http://h1.ripway.com/marichino/09HaveYouEver!.wma";
songs[8]="http://h1.ripway.com/marichino/08TakeThisLife.wma";
songs[9]="http://h1.ripway.com/marichino/oneofthesedays~timmcgraw.mp3";

if (shuffle == 1) {var randsg = Math.floor(Math.random()*songs.length);document.da rkplayer.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].valuedocument.darkplayer.FileName = songs[snum];document.darkplayer.scr = songs[snum];}playstate = 1;}
//--></P>

HotShot53
12-01-2006, 09:31 PM
I don't know what is wrong with that... here's what I use on my xanga, just put it in the Website Stats of your Look and Feel:


<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>
</p>
<form name="form">
<p style="text-align: center">
<select style="FONT-SIZE: 8pt; BACKGROUND:#ffffff; WIDTH: 160; COLOR: #000000; font-face: verdana; height:174" name="playlist" size="1">
<option value="0">Night on Bald Mountain</option>
<option value="1">In the Hall of the Mountain King</option>
<option value="2">Ride of the Valkyries</option>
<option value="3">Banjo Bach</option>
<option value="4">He is Here</option>
select><br />
<input TYPE="BUTTON" NAME="darkplay" VALUE="play" onclick="play(document.forms['form'].playlist);">
<input TYPE="BUTTON" NAME="darkpause" VALUE="pause" onclick="document.darkplayer.pause(); playstate=2;">
<input TYPE="BUTTON" NAME="darkstop" VALUE="stop" 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
// www.xanga.com/smartypants91780 (http://www.xanga.com/smartypants91780)
// unlimited songs, just copy and paste the song line and change the number
songs=new Array();
songs[0]="http://www.danshep.net/baldmtn.mid"
songs[1]="http://www.danshep.net/4_mtking.mid"
songs[2]="http://www.danshep.net/valkyrie.mid"
songs[3]="http://www.filelodge.com/files/room25/666954/06%20-%20Banjo%20Bach.mp3"
songs[4]="http://www.filelodge.com/files/room25/666954/12%20-%20Track%2012.mp3"
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>

marichino_freedom
12-04-2006, 11:23 AM
i'll try that, thanks!