Advertisement
wolfboyft

Quote generator.

Jun 4th, 2016
180
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.09 KB | None | 0 0
  1. <p id="quotebox"></p>
  2. <input type="button" value="Another!" onclick="quotes();" />
  3. <br>
  4. <br>
  5.  
  6. function quotes(){
  7. var quote = new Array;
  8. quote[0]="\"If video games have taught me anything, it's that if you encounter enemies then you're going the right way.\" ~Unknown.";
  9. quote[1]="\"I don't need to get a life, I'm a gamer. I have lots of lives!\" ~Unknown.";
  10. quote[2]="\"A chainsaw! Find some meat!\" ~Doom."
  11. quote[3]="\"Don't judge my choices without understanding my reasons.\" ~Unknown."
  12. quote[4]="\"Logic and reason above all else.\" ~wolfboyft."
  13. quote[5]="\"Sociology is just applied physcology, which is just applied biology, which is just applied chemistry, which is just applied physics, which is just applied mathematics.\" ~wolfboyft."
  14. quote[6]="\"You got the BFG9000! Oh, yes.\" ~Doom."
  15. quote[7]="\"Nazi scum.\" ~BJ Blazcowicz."
  16. quote[8]="\"I'm a mur-diddly-urdler!\" ~Ned Flanders."
  17. quote[9]="\"Hot, sweet, sexy damn!!\" ~wolfboyft."
  18. rdmQuote = Math.floor(Math.random()*quote.length);
  19. document.getElementById("quotebox").innerHTML=quote[rdmQuote];
  20. }
  21. window.onload=quotes();
  22. </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement