darkplayer javascript, shuffle through a few songs |
darkplayer javascript, shuffle through a few songs |
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. |
|
|
|
![]() ![]() |