DDPlayer_x3
read my profile
sign my guestbook

Name: dropdown player
Country: United States
Gender: Female


Message: message me


Member Since: 12/25/2004

SubscriptionsSites I Read
MusicCodes_x3

Posting Calendar

|<< oldest | newest >>|
view all weblog archives

Get Involved!

Suggest a link

Recommend to friend

Create a site

Saturday, December 25, 2004

To put a dropdown music player on your site (like the one above):

1.        copy this whole html code and paste it into your “custom header” box on your look and feel page

2.        put the name of the song and/ or artist where it says “put song name here”

3.        put the code of the song where it says “put song link here”

** DO NOT remove the quotation marks when you paste the code in, or the song will not work.

** Make sure numbers of the name and code match, or it will play a different song than it says it is

** If you are having trouble with 2 songs playing at once, make sure that there isn't a code in your music url box, or that song will be playing at the same time the dropdown list is playing it's music.

 

TO ADD MORE THAN 6 SONGS:  just copy the "<option value="5">PUT SONG NAME HERE</option>", paste it right under the last one, and change the number to 6, then paste it again and change it to 7, then again and to 8 and so on. do the same for "songs[5] ="PUT SONG LINK HERE";" (make sure you change the numbers of the codes to match the numbers of the names)

 

 

>> if you want music for your player, CLICK HERE <<

 

 

 

 

 

<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: 250px; COLOR: 000000; font-face: verdana" name="playlist" size="1">
<option value="0">PUT SONG NAME HERE</option>
<option value="1">PUT SONG NAME HERE</option>
<option value="2">PUT SONG NAME HERE</option>
<option value="3">PUT SONG NAME HERE</option>
<option value="4">PUT SONG NAME HERE</option>
<option value="5">PUT 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] ="PUT SONG LINK HERE";
songs[1] ="PUT SONG LINK HERE";
songs[2] ="PUT SONG LINK HERE";
songs[3] ="PUT SONG LINK HERE";
songs[4] ="PUT SONG LINK HERE";
songs[5] ="PUT SONG LINK 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>

 

 

 

i did not make this code, i found it somewhere (i forget where..) and i only posted it to help those who needed it. if you are the creater of this code, please tell me so i can give you credit for making it. i am very sorry if providing this code to users has upset anyone.

comments have been diabled for a while