Skip to content

Instantly share code, notes, and snippets.

@spearson
Created February 24, 2011 01:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save spearson/841544 to your computer and use it in GitHub Desktop.
Save spearson/841544 to your computer and use it in GitHub Desktop.
var quotes = new Array();
quotes[0]="A good one man";
quotes[1]="Different stuffz";
quotes[2]="1119999";
quotes[3]="ALL CAPS IS FREE";
quotes[4]="no reali";
quotes[5]="KeKBeePrz";
function changeQuote() {
var newQuote = quotes[Math.round(Math.random() * quotes.length - 1)];
document.quoteform.quote.value = newQuote;
}
setInterval("changeQuote()", 2000);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment