Put that into the HEAD section of your page:
Code:
<script type="text/javascript">
var sentences = new Array(
"Put your sentences here.",
"Quoted and comma delimited.",
"Third sentence.",
"Fourth sentence.",
"And so on...",
"<em>HTML tags may be used</em>",
"Use <br /> for line breaks.",
"NO COMMA AFTER THE LAST ONE!!!"
);
</script>
And that, where you want the sentences to appear:
Code:
<script type="text/javascript">
document.write(sentences[Math.floor(Math.random()*sentences.length)]);
</script>
Bookmarks