Topic: Random Quote
Hey just thought I'd share a simple javascript to display a random quote.
I used it in my announcement box...
Jules
<script language="JavaScript">var Quotation=new Array();
// Set up the quotations to be shown, below.
// To add more quotations, continue with the
// pattern, adding to the array. Remember
// to increment the Quotation[x] index!
Quotation[0] = "All yuor base are belong to us.";
Quotation[1] = "Getting intimate with digital photography.";
Quotation[2] = "Repent! The end is coming, $9.95 at Amazon.";
Quotation[3] = "I got kicked out of Riverdance for using my arms.";
Quotation[4] = "Pastry satisfies where art is unavailable.";
Quotation[5] = "Delete not, lest you, too, be deleted.";
Quotation[6] = "O! Youth! What a pain in the backside.";
Quotation[7] = "Wishes are like goldfish with propellors.";
Quotation[8] = "Digital photograpy news, views and reviews.";
Quotation[9] = "Invention is the mother of too many useless toys.";
Quotation[10] = "There are only two reasons to sit in the back row of an airplane: Either you have diarrhea, or you're anxious to meet people who do.";
Quotation[11] = "I filled out an application that said, 'In Case Of Emergency Notify'. I wrote 'Doctor'...What's my mother going to do?";
Quotation[12] = "I think animal testing is a terrible idea; they get all nervous and give the wrong answers.";
Quotation[13] = "If your parents never had children, chances are you won't either.";
Quotation[14] = "The difference between genius and stupidity is that genius has its limits.";
Quotation[15] = "Honesty is the best policy, but insanity is a better defense.";
// ======================================
// Do not change anything below this line
// ======================================
var Q = Quotation.length;
var whichQuotation=Math.round(Math.random()*(Q-1));
function showQuotation(){document.write(Quotation[whichQuotation]);}
showQuotation();
</script>
http://www.shuttertalk.com
The online bible for all
http://www.publicbible.com