|
|||||||
![]() |
|
|
LinkBack | Thread Tools |
|
|
#1 |
|
Everyones life has worth
Join Date: May 2003
Location: My Yellow Bug
Posts: 3,780
Rep Power: 47 ![]() |
Random MP3s
I took a break from the calling. I need a code that doesn't have an embedded player but randomizes mp3s to be played in the backround. I have one that does an embed and it's kind of a pain to work with. Any help would be greatl appreciated.
|
|
|
|
|
|
#2 |
|
BANNED
Join Date: Jul 2002
Location: Indiana , USA
Posts: 2,677
Rep Power: 0 ![]() |
Youve lose me man your looking for a player that will randomize you MP3's in a playlist?
|
|
|
|
|
|
#3 |
|
Everyones life has worth
Join Date: May 2003
Location: My Yellow Bug
Posts: 3,780
Rep Power: 47 ![]() |
No, randomizes mp3s on a webpage.
|
|
|
|
|
|
#4 |
|
BANNED
Join Date: Jul 2002
Location: Indiana , USA
Posts: 2,677
Rep Power: 0 ![]() |
um ok so like it takes all the filenames and then puts them on a page in random order?
|
|
|
|
|
|
#5 |
|
Everyones life has worth
Join Date: May 2003
Location: My Yellow Bug
Posts: 3,780
Rep Power: 47 ![]() |
I'm not sure if this'll show up but this is what I have now.
<td height=8><script language="Javascript"> <!-- var currentdate = 0 var theranmidi = " " var core = 0 function StringArray (n) { this.length = n; for (var i =1; i <= n; i++) { this[i] = ' ' } } midi = new StringArray(5) midi[0] = 'callme.mp3' midi[1] = 'likeastone.mp3' midi[2] = 'flyingteapot.mp3' midi[3] = 'insideout.mp3' midi[4] = 'noreply.mp3' ran = 60 / midi.length function ranmidi() { currentdate = new Date() core = currentdate.getSeconds() adcore = Math.floor(core/ran) core = adcore theranmidi = midi[core] return (theranmidi) } document.write("</b>" +"<EMBED src="+ranmidi()+" Width=70 Height=25 autostart=false>") //--> </script></td> I don't want it to embed and it's made for midis as well, it's been buggy time to time so I need something that's a bit more suited for mp3s and doesn't embed. What this does is play them on one page and everytime you re-vist or refresh it plays a different mp3. |
|
|
|
|
|
#6 |
|
A Legend in Underwear
Join Date: May 2002
Location: Unknown
Posts: 5,256
Rep Power: 0 ![]() |
Any reason why you can't do this serverside using PHP or something? Javascript sucks mostimes
__________________
Gentoo Linux - Developer (baselayout) Read my blog "I contend that we are both atheists. I just believe in one fewer god than you do. When you understand why you dismiss all the other possible gods, you will understand why I dismiss yours." Stephen Roberts |
|
|
|
|
|
#7 |
|
Everyones life has worth
Join Date: May 2003
Location: My Yellow Bug
Posts: 3,780
Rep Power: 47 ![]() |
One main reason, I've never done any PHP of any sort to my knowledge. ^^;
|
|
|
|
|
|
#8 |
|
Guest
Posts: n/a
|
an interesting site you have there ^_^
|
|
|
|
#9 |
|
Everyones life has worth
Join Date: May 2003
Location: My Yellow Bug
Posts: 3,780
Rep Power: 47 ![]() |
Thanks. I'm doing my best to get more stuff up on there. But things have been kinda bad lately, I'll try and get more stuff up by tonight.
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
|
|