I was wondering if anyone knew how to play a different album each day of the week. So there are 7 different albums or list of songs. Right now I have a music player with a drop down list.
@AltF4Feb 28.2006 — #You need random generater. [code=html] <script language="Javascript"> var musicList = new Array; musicList[0] = "album name 1.mp3"; musicList[1] = "album name 2.mp3"; musicList[2] = "album name 3.mp3"; musicList[3] = "album name 4.mp3"; musicList[4] = "album name 5.mp3"; musicList[5] = "album name 6.mp3"; musicList[6] = "album name 7.mp3"; var choice = Math.floor(Math.random() * musicList.length); </script> <body> <embed bgsound="'musicList[choice]'"> [/code] It should work but I'm not exactly sure. This the same thing as a random image thing. So Good Luck!
@SilentFire666authorFeb 28.2006 — #That wont work for what i want to do....I already have that right now. I want to play a different album each day but not randomly...i still want the songs to play randomly just not picking the album. So like Sunday would play one album, Monday would play another one and so on. Then the next week it plays the same album it played the Sunday before...but thanks for trying...
Create a playlist file for each album, .wax, and name them 0album.wax, through 6album.wax. Using the ordinal number for the day of the week, 0 - 6, build the filename string for the player.
@konithomimoFeb 28.2006 — #I agree about making a playlist for each day, but I would suggest using .m3u files and php so that you can easily have a random shuffle each day, instead of playing the playlist in the same order.
Check out this link on how to do that: [url=http://www.boutell.com/newfaq/creating/randomsongs.html]Random Songs[/url]
@SilentFire666authorMar 08.2006 — #Does any one else know a way of doing this...I want the songs to play random but still have the drop down menu to choose a different song. Oh and I am using this on Xanga.