Sign in or Sign up

Music
Started by Dox


Rate this topic
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5


0 posts in this topic
Dox Offline
Cyber Security Student
***


Contributor
Posts: 414
Threads: 125
Joined: Mon Oct 2017
Reputation: 6

CZPoints: 134 CZP
OnFireContributor
10-25-2017, 07:46 PM -
#1
Thinking about it, @Corruption should add quiet background music to the homepage. One that shuffles music per page refresh.

I've got the code for that myself:
Code:
function music() {

var mp3s = [
'music1.mp3',
'music2.mp3',
'music3.mp3',
'music4.mp3',
'music5.mp3',
];

var index=Math.floor(Math.random() * mp3s.length);
var html='<audio loop="loop" autoplay="autoplay"><source src="' + mp3s[index] + '" type="audio/mpeg" /></audio>';
document.write(html);

}
<3
Contact E-Mail: [email protected]
BTC Address: 1JmJrbmQn4Bg24r68bSyZ7TxNZGad3iPWM




Users browsing this thread: 1 Guest(s)