This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Jul 10th, 2013  |  syntax: JavaScript  |  size: 0.55 KB  |  views: 58  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. var rootList = new Array("C", "C","Cis", "Des", "D", "D", "Dis", "Es", "E", "E", "Eis", "Fes", "F", "F", "Fis", "Ges", "G", "G", "Gis", "As", "A", "A", "Ais", "Bb", "B", "B", "Bis", "Ces");
  2.  
  3. var symbols = new Array("ma7","mi7","7","sus7","ma7#11")
  4.  
  5. function player() {
  6.  
  7.   document.write("<font size=\"7\">" + rootList[randomNumber(rootList.length)] + "<sup>" + symbols[randomNumber(symbols.length)] + "</sup>" + "</font>")
  8.   setTimeout(player(), 3000)
  9. }
  10.  
  11.  
  12. function randomNumber(length) {
  13.     return Math.floor(Math.random()*length)
  14. }
  15.  
  16. player()
clone this paste RAW Paste Data