DriverHeaven.net

 
Looking for the skin chooser?
 
 
  • Home

  • Reviews

  • Articles

  • News

  • Tools

  • GamingHeaven

  • Forums

  • Network

 

Go Back   DriverHeaven.net > Forums > Software / Tools > Programming, Coding, (Web)Design


Reply
 
LinkBack Thread Tools
Old Jul 6, 2003, 10:30 PM   #1
Everyones life has worth
 
Join Date: May 2003
Location: My Yellow Bug
Posts: 3,780
Rep Power: 47
digerati will become famous soon enough

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.
digerati is offline   Reply With Quote


Old Jul 6, 2003, 10:41 PM   #2
BANNED
 
Join Date: Jul 2002
Location: Indiana , USA
Posts: 2,677
Rep Power: 0
Sourcer_2002 is on a distinguished road

Youve lose me man your looking for a player that will randomize you MP3's in a playlist?
Sourcer_2002 is offline   Reply With Quote
Old Jul 6, 2003, 10:46 PM   #3
Everyones life has worth
 
Join Date: May 2003
Location: My Yellow Bug
Posts: 3,780
Rep Power: 47
digerati will become famous soon enough

No, randomizes mp3s on a webpage.
digerati is offline   Reply With Quote
Old Jul 6, 2003, 10:56 PM   #4
BANNED
 
Join Date: Jul 2002
Location: Indiana , USA
Posts: 2,677
Rep Power: 0
Sourcer_2002 is on a distinguished road

um ok so like it takes all the filenames and then puts them on a page in random order?
Sourcer_2002 is offline   Reply With Quote
Old Jul 6, 2003, 10:57 PM   #5
Everyones life has worth
 
Join Date: May 2003
Location: My Yellow Bug
Posts: 3,780
Rep Power: 47
digerati will become famous soon enough

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.
digerati is offline   Reply With Quote
Old Jul 7, 2003, 05:27 AM   #6
A Legend in Underwear
 
UberLord's Avatar
 
Join Date: May 2002
Location: Unknown
Posts: 5,256
Rep Power: 0
UberLord is on a distinguished road

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
UberLord is offline   Reply With Quote
Old Jul 7, 2003, 04:12 PM   #7
Everyones life has worth
 
Join Date: May 2003
Location: My Yellow Bug
Posts: 3,780
Rep Power: 47
digerati will become famous soon enough

One main reason, I've never done any PHP of any sort to my knowledge. ^^;
digerati is offline   Reply With Quote
Old Jul 7, 2003, 04:21 PM   #8
Midnight Blue
Guest
 
Posts: n/a

an interesting site you have there ^_^
  Reply With Quote
Old Jul 7, 2003, 09:15 PM   #9
Everyones life has worth
 
Join Date: May 2003
Location: My Yellow Bug
Posts: 3,780
Rep Power: 47
digerati will become famous soon enough

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.
digerati is offline   Reply With Quote
Reply

Bookmarks

Thread Tools