Help - Search - Members - Calendar
Full Version: Help!!! with music player!
Forums > Resource Center > Support Center > Xanga Support > Xanga Resolved Topics
Wonderwooman18
I filled in all the information like the site told me to but the music won't play when i put it in my xanga! Can anyone help me please?? sad.gif

[CODEBOX]<object id="darkplayer" codeBase="http://activex.microsoft.com/active x/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">
<p style="text-align: center">
<select style="width: 300px; height: 20px; background-color: #91D0FF; color: #000000; font-size: 10pt; font-family: Rix, sans-serif; border: #007BF7 1px solid;" name="playlist" size="1">
<option value="0"> Jesse McCartney- Beautiful Soul </option>
<option value="1"> Bonnie McKee- Somebody </option>
<option value="2"> Bonnie McKee- Trouble </option>
<option value="3"> Kelly Clarkson- Behind These Hazel Eyes </option>
<option value="4"> Brooke Valentine- Girl Fight </option>
</select><br>
<input style="width: 40px; height: 20px; background-color: #91D0FF; color: #000000; font-size: 6pt; font-family: Rix, sans-serif; border: #007BF7 1px solid;" TYPE="BUTTON" NAME="darkplay" VALUE="play" OnClick="play(document.forms['form'].playlist);">
<input style="width: 40px; height: 20px; background-color: #91D0FF; color: #000000; font-size: 6pt; font-family: Rix, sans-serif; border: #007BF7 1px solid;" TYPE="BUTTON" NAME="darkpause" VALUE="pause" OnClick="document.darkplayer.Pause (); playstate=2;">
<input style="width: 40px; height: 20px; background-color: #91D0FF; color: #000000; font-size: 6pt; font-family: Rix, sans-serif; border: #007BF7 1px solid;" 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
songs=new Array();
songs[0]=" http://a420.v8383d.c8383.g.vm.akamaistream...9920_1_2_04.asf ";
songs[1]=" http://www.warnerreprise.com/asx/bonniemck...56-a.asx";
songs[2]=" http://www.warnerreprise.com/asx/bonniemck...56-v.asx";
songs[3]=" http://a420.v8383d.c8383.g.vm.akamaistream...3_04.asf";
songs[4]=" http://boss.streamos.com/wmedia/virg001/br...rginsite";
if (shuffle == 1) {
var randsg = Math.floor(Math.random()* songs.length);
document.darkplayer.FileN ame = 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.FileN ame = songs[snum];
document.darkplayer.scr = songs[snum];
}
playstate = 1;
}
//-->
</script>
Allietwin1234
try deleting the spaces inbetween the " and the http

like this

Allietwin1234
actually that might not work... try this one

<!-- begin code provided by createblog.com -->
<object id="darkplayer" codeBase="http://activex.microsoft.com/active x/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">
<p style="text-align: center">
<select style="width: 300px; height: 20px; background-color: #91D0FF; color: #000000; font-size: 10pt; font-family: Rix, sans-serif; border: #007BF7 1px solid;" name="playlist" size="1">
<option value="0">Jesse McCartney- Beautiful Soul </option>
<option value="1">Bonnie McKee- Somebody </option>
<option value="2">Bonnie McKee- Trouble </option>
<option value="3">Kelly Clarkson- Behind These Hazel Eyes </option>
<option value="4">Brooke Valentine- Girl Fight </option>
</select><br>
<input style="width: 40px; height: 20px; background-color: #91D0FF; color: #000000; font-size: 6pt; font-family: Rix, sans-serif; border: #007BF7 1px solid;" TYPE="BUTTON" NAME="darkplay" VALUE="play" OnClick="play(document.forms['form'].playlist);">
<input style="width: 40px; height: 20px; background-color: #91D0FF; color: #000000; font-size: 6pt; font-family: Rix, sans-serif; border: #007BF7 1px solid;" TYPE="BUTTON" NAME="darkpause" VALUE="pause" OnClick="document.darkplayer.Pause (); playstate=2;">
<input style="width: 40px; height: 20px; background-color: #91D0FF; color: #000000; font-size: 6pt; font-family: Rix, sans-serif; border: #007BF7 1px solid;" 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
songs=new Array();
songs[0]="http://a420.v8383d.c8383.g.vm.akamaistream.net/7/420/8383/3b858b51/mtvrdstr.download.akamai.com/8512/wmp/4/25716/29920_1_2_04.asf";
songs[1]="http://www.warnerreprise.com/asx/bonniemckee_somebody_56-a.asx";";
songs[2]="http://www.warnerreprise.com/asx/bonniemckee_trouble_56-v.asx";";
songs[3]="http://a420.v8383d.c8383.g.vm.akamaistream.net/7/420/8383/3b858b51/mtvrdstr.download.akamai.com/8512/wmp/2/23893/30200_1_3_04.asf";";
songs[4]="http://boss.streamos.com/wmedia/virg001/brooke_valentine/video/chain_letter/girlfight_lo.asx?siteid=virginsite";";
if (shuffle == 1) {
var randsg = Math.floor(Math.random()* songs.length);
document.darkplayer.FileN ame = 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.FileN ame = songs[snum];
document.darkplayer.scr = songs[snum];
}
playstate = 1;
}
//-->
</script>

<!-- end code provided by createblog.com -->
Allietwin1234
blink.gif grrness cry.gif

I can't do anything right

Pulchritude
uhh i recomend doing it over again.. sorry but its kinda hard to point out the problem in a long code like this....

so here

rolleyes.gif
Allietwin1234
Okay rolleyes.gif whistling.gif I redid the whole code for you and made it look just like you wanted it too so here you go it works and i tried it out on my other xanga

Jhaks
Ummm this is not a long piece of code...... and syntax errors were actually in 2 places.
1)Take a look at the end of this line:
songs[1]="http://www.warnerreprise.com/asx/bonniemckee_somebody_56-a.asx";";

Also in this line you have a space in the name FileName:
document.darkplayer.FileN ame = songs[snum];
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.