DRB184 Posted June 13, 2010 Share Posted June 13, 2010 This is the code that I have found that automatically plays a song when the site is loaded. My question is, is it possible to have a number of songs - song1, song2....etc - and have them randomly selected each time the site loads. If so, what would the code be please. <EMBED src="music/song1.mp3" width="140" height="40" volume="20" autostart=true loop=FALSE></EMBED> Thanks in advance, David. Link to comment https://forums.phpfreaks.com/topic/204630-how-to-randomly-play-an-mp3-on-site-load/ Share on other sites More sharing options...
ram4nd Posted June 13, 2010 Share Posted June 13, 2010 put url's in array and call them randomly: Nice tutorial. Link to comment https://forums.phpfreaks.com/topic/204630-how-to-randomly-play-an-mp3-on-site-load/#findComment-1071394 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.