mercredi 30 novembre 2016

random number to play mp3 file

First of all - BIG thanks in advance.

I need to put together a one page site for playing random mp3's/wav's from a folder. I saved the files in numbers (1.mp3, 2.mp3, etc.) so that I won't have to list each one in the script. So the idea is that on page load, the script randomise a number and a html5 audio player will play the mp3 that corresponds to that number.

I tried several variations, but so far I can't get it right. So I figured better start from scratch again.

I'm not a programmer though, just basic stuff.

thanks again for any help.




Aucun commentaire:

Enregistrer un commentaire