Template:Qotd

From RealCTY
Revision as of 21:25, 30 August 2006 by Memoriesonfilm (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

<script language="javascript" type="text/javascript">

var headers = ["a000", "b111", "c222", "d333", "e444"];

function getRandomHeader(phrase, size) {

   var n = (Math.round(Math.random()  * 100) % size);
   return phrase[n];

}

var myHeader = getRandomHeader(headers, 5);

document.write("" + myHeader + "");

</script>