It shows that you are unregistered. Please register with us by clicking Here
Go Back   Blogring.net - The Premier Myspace & Xanga Community > Xanga Forums > Xanga Codes and Scripts > Xanga - Music

Xanga - Music Music controls and playlists for your Xanga. With these tools, you can add various songs and beats to your Xanga to give it a mood you desire.

Reply
 
LinkBack Thread Tools Display Modes

Old 08-03-2004, 11:31 PM   #1 (permalink)
I got 1,500 posts!

 
Michaelczhang's Avatar
 
Michaelczhang is offline
Join Date: Nov 2003
Posts: 3,662
Michaelczhang
Points: 3,847.00
Here is a music playlist and control submitted by swt_lil_strawberrie.

Windows Media Player Components
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="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>
Playlist Form and Controls
Code:
<form name="form">
<select style="FONT-SIZE: 8pt; BACKGROUND:# B3D98C; WIDTH: 150; COLOR: # 1FAD66; font-face: ariel; height:174" name="playlist" size="1">
<option value="0">Song title- Artist</option>
<option value="1"> Song title- Artist</option>
<option value="2"> Song title- Artist </option>
<option value="3"> Song title- Artist </option>
<option value="4"> Song title- Artist </option>
<option value="5"> Song title- Artist </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>
Music Script
Code:
<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
 *// [Only registered and activated users can see links. ]
 *// unlimited songs, just copy and paste the song line and change the number
songs=new Array();
songs[0]="Song URL"
songs[1]="Song URL"
songs[2]="Song URL"
songs[3]="Song URL"
songs[4]="Song URL"
songs[5]="Song URL"

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>
Insert all these into where you would like the player.
  Reply With Quote
Sponsored Links

Old 08-04-2004, 11:56 PM   #2 (permalink)
Premium Member
 
Autumn. is offline
Join Date: May 2004
Location: Sugar Land
Posts: 1,206
Autumn.
Points: 1,310.00
cool script! thanks for sharing!
  Reply With Quote

Old 08-05-2004, 03:16 AM   #3 (permalink)
Junior Member
 
trinh21 is offline
Join Date: Aug 2004
Posts: 7
trinh21
Points: 7.00
okie... i did the code. n i see the buttons.. there great.. but it doesnt play ne thing....plz help(may b something wrong wif the code?)

[Only registered and activated users can see links. ]

lolz nvm i figured it out... but it takes a hwile to load the songs though..thanx for the code
  Reply With Quote

Old 08-05-2004, 02:02 PM   #4 (permalink)
Junior Member
 
CoOkie_mOnstEr is offline
Join Date: Jul 2004
Posts: 17
CoOkie_mOnstEr
Points: 217.00
Okay i cant here tha music either. Can sumbody help pleaze!!!!!
__________________
Cookie MonSter[Only registered and activated users can see links. ]anga

http://img.photobucket.com/albums/v9...ie_16/star.jpg
Hot and sexy man
Live life to tha fullest cuz u never kno when itz over
  Reply With Quote

Old 08-05-2004, 09:28 PM   #5 (permalink)
Junior Member
 
Saint CaLiSuRfEr is offline
Join Date: Jun 2004
Posts: 12
Saint CaLiSuRfEr
Points: 12.00
Lightbulb

i cant figure it out help..plz.. :cry:
  Reply With Quote

Old 08-06-2004, 01:33 AM   #6 (permalink)
Senior Member
 
Shyg202 is offline
Join Date: Jun 2004
Location: Ridgewood, Nyc
Posts: 200
Shyg202
Points: 400.00
I GOT IT! :-D here it is

Code:
<!-- begin code provided by blogring.net -->

<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>
<form name="form">

<p style="text-align: center">
<select style="FONT-SIZE: 8pt; BACKGROUND:#transparent; WIDTH: 150px; COLOR: #33666; font-face: verdana" name="playlist" size="1">
<option value="0">Kennedy</option>
<option value="1">SONG NAME HERE</option>
<option value="2">SONG NAME HERE</option>
<option value="3">SONG NAME HERE</option>
<option value="4">SONG NAME HERE</option>
<option value="5">SONG NAME 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
songs=new Array();
songs[0]="SONG URL HERE";
songs[1]="SONG URL HERE";
songs[2] ="SONG URL HERE";
songs[3] ="SONG URL HERE";
songs[4] ="SONG URL HERE";
songs[5]="SONG URL HERE";

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>

<!-- end code provided by blogring.net -->

try that, it works for me
  Reply With Quote

Old 08-06-2004, 05:30 PM   #7 (permalink)
Junior Member
 
Yuna1022 is offline
Join Date: Aug 2004
Posts: 2
Yuna1022
Points: 2.00
Thank you so much for the code Shyg202! It really helped.
__________________
It all started when I saw this sphere of you...
  Reply With Quote

Old 08-06-2004, 06:42 PM   #8 (permalink)
Senior Member
 
miz_korean_grl is offline
Join Date: Apr 2004
Posts: 319
miz_korean_grl
Points: 330.00
thanks for the code! at first it didn't work then i went back and fixed the mistakes and now it's working!
  Reply With Quote

Old 08-07-2004, 05:07 PM   #9 (permalink)
Junior Member
 
analphamansson is offline
Join Date: Aug 2004
Location: california
Posts: 2
analphamansson
Points: 102.00
Is there a way to just have the stop/play/pause buttons?
  Reply With Quote

Old 08-09-2004, 04:13 AM   #10 (permalink)
Junior Member
 
l3al3yAZN4ever is offline
Join Date: Jul 2004
Posts: 1
l3al3yAZN4ever
Points: 1.00
hey um how do u change the colors for the play stop pause button?
  Reply With Quote
Reply

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT. The time now is 11:26 AM.



Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0