Log In · Register

 
darkplayer javascript, shuffle through a few songs
silence
post Dec 26 2004, 02:09 PM
Post #1


itz fo shor.
***

Group: Member
Posts: 68
Joined: Dec 2004
Member No: 74,590



how do you modify the darkplayer code so that it shuffles through only a few songs on your playlist and not the whole playlist?

QUOTE
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;


wat do you do to the second line to make it random for only a few songs?
declare something new? i hope someone knows what i'm talking about. huh.gif
 

Posts in this topic
silence   darkplayer javascript   Dec 26 2004, 02:09 PM


Closed TopicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members: