January 3, 2005
This Post comes to you through the courtesy of Benjamin Franklin
I have put several of the great sayings of Benjamin Franklin in a random bit of text so that one will show up randomly. You may wish to carefully look over and contemplate the wisdom of the following saying.
pickOne = function(listOfThings){
randomNumber = Math.floor(Math.random()*listOfThings.length)
return listOfThings[randomNumber]
}
Starts = new Array(”An apple a day”, “Early to bed, early to rise”, “Necessity”, “A true friend”, “A penny saved”, “A word to the wise”, “Many words”, “The sleeping fox”, “Lost time”, “Diligence”, “One today”, “A cat in gloves”, “Constant dropping”, “Trouble”, “Keep thy shop and they shop”, “A little neglect”, “A fat kitchen”, “Lying”, “A friend in need”, “A bird in the hand”)
start = pickOne(Starts)
finishes = new Array(”keeps the doctor away”, “makes a man healthy wealth and wise”, “never made a good bargain”, “is the best possession”, “is a penny earned”, “is sufficient”, “won’t fill a bushel”, “catches no poultry”, “is never found again”, “is the mother of good luck”, “is worth two tomorrows”, “catches no mice”, “wears away stones”, “springs from idleness”, “will keep thee”, “may breed great mischief”, “makes a lean will”, “rides upon debt’s back”, “is a friend indeed”, “is worth two in the bush”)
finish = pickOne(finishes)
document.write(start) document.write(finish).
document.write()