babycave
10-30-2004, 08:36 AM
Hi i have a command to put song in my background "<EMBED SRC="http://www.the website/ the music.mp3" AUTOSTART=false WIDTH=100 HEIGHT=50 LOOP=true> " The problem is that i want to put more than one song in my home page and i want to have a drop down button to choose the sog i want to play from my website if possible with the play stop, volume button like the other one plus the drop down to choose the song i want to play thanks. If u have similar code to put musics with a drop down menu and button also let me know please. Thx
Monkey Bizzle
10-30-2004, 08:49 AM
the thing you are looking for is called darkplayer. search the forum for darkplayer or dark player and you will find the code that you want in one of the posts!
babycave
10-30-2004, 09:06 AM
the thing you are looking for is called darkplayer. search the forum for darkplayer or dark player and you will find the code that you want in one of the posts!
Thx i think thats it thanks a lot :)
babycave
10-30-2004, 06:58 PM
what not good with this code pls. I try to use this to put more than 1 music in my homepage but it dont work. Thx
<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:#FFF19F; WIDTH: 149px; COLOR: #D2C57C; font-face: Comic Sans MS" name="playlist" size="1">
<option value="0"> where did love go</option>
<option value="1"> U</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]="http://www.angelfire.com/musicals/babycave/wheredidlovego.mp3";
songs[1]="http://www.angelfire.com/musicals/babycave/u.mp3";
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>