Menu
I’m trying to figure out how I can put a bunch of songs in an array then whent he page loads, it randomly chooses a song to play. Also, I want to make a button that says stop when the music is playing and says play when the music is stopped.
[code]
<script>
a = new Array()
a[0] = song1
a[1] = song2
a[2] = song3
number = math.round(3 * math.random())
a[number].onload
</script>
How can I make a function to stop/play this?