View Full Version : Is there a way to have a...


Lau
12-19-2004, 10:47 PM
music box type thing. where I can have the viewer choose what file to listen to.? I want to upload some of my daughters noises. like have different tracks. is that possible?

Thanks

x Kissss x
12-19-2004, 10:53 PM
i think this is what you mean...

hope it works :)


<object id="darkplayer" codeBase="x/controls/mplayer/en/nsmp2inf.cab#Ver" 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: 6pt; font-family: Rix, sans-serif; border: #007BF7 1px solid;" name="playlist" size="1">
<option value="0">Get Low- Lil' Jon</option>
<option value="1">She Will Be Loved- Maroon 5</option>
<option value="2">Pieces of Me- Ashlee Simpson</option>
<option value="3">Song Name Here</option>
<option value="4">Song Name Here</option>
<option value="5">Song Name Here</option>
<option value="6">Song Name Here</option>
<option value="7">Song Name Here</option>
<option value="8">Song Name Here</option>
<option value="9">Song Name Here</option>
<option value="10">Song Name Here</option>
<option value="11">Song Name Here</option>
<option value="12">Song Name Here</option>
<option value="13">Song Name Here</option>
<option value="14">Song Name Here</option>
<option value="15">Song Name Here</option>
<option value="16">Song Name Here</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.ak amaistream.net/7/420/8383/3b858b51/mtvrdstr.download.akamai. com/8512/wmp/0/7706/28104_1_19_04.asf";
songs[1]="http://www.musiccodescentral.com "><img dynsrc="http://playlist.yahoo.com/makeplaylist.dll%3Fsid=63 70235&pt=url&xdata=0-17324080-NaN&s=0&b=&zz=a.asx";
songs[2]="http://www.musiccodescentral.com "><img dynsrc="http://playlist.yahoo.com/makeplaylist.dll%3Fsid=61 36769&pt=url&xdata=0-17200479-NaN&s=0&b=&zz=a.asx";
songs[3]="Song URL Here";
songs[4]="Song URL Here";
songs[5]="Song URL Here";
songs[6]="Song URL Here";
songs[7]="Song URL Here";
songs[8]="Song URL Here";
songs[9]="Song URL Here";
songs[10]="Song URL Here";
songs[11]="Song URL Here";
songs[12]="Song URL Here";
songs[13]="Song URL Here";
songs[14]="Song URL Here";
songs[15]="Song URL Here";
songs[16]="Song URL Here";
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>

xbisoubisoux
12-19-2004, 11:01 PM
you can have a playlist but you need to find or pay for a website to host your music

Lau
12-19-2004, 11:10 PM
I have a site to host it.. thanks soo much:)

Lau
12-19-2004, 11:15 PM
would that script go in the website stats? or the java one?
thanks

tokyo bleu
12-20-2004, 01:19 AM
Custom Header or Website Stats, though I'd recommend the former.