dcsimg

Assignment 46: A Possible Answer

This...



<SCRIPT LANGUAGE="JavaScript">

var quote = new Array(10);
quote[0] = "Education is going to college to learn to express your ignorance in scientific terms.";
quote[1] = "Chance favors the prepared mind.";
quote[2] = "I hate the idea of causes, and if I had to choose between betraying my country and betraying my friend, I hope I should have the guts to betray my country.";
quote[3] = "The only difference between bravery and stupidity is the outcome.";
quote[4] = "One should never let a formal education get in the way of learning.";
quote[5] = "A person can be smart, but people are very stupid.";
quote[6] = "The purpose of war is not to die for one's country, but to make the other man die for his.";
quote[7] = "Do, or do not. There is no try."
quote[8] = "Reality is merely an illusion, albeit a very persistent one."
quote[9] = "If women did not exist, all the money in the world would have no meaning."
quote[10] = "When choosing between two evils, I always like to try the one I have never tried before.";
quote[11] = "Boop Boopy Doo!"
quote[12] = "War! What is it good for? Absolutely nothing -- Say it again!"
quote[13] = "If at first you do not succeed, lower your standards."
quote[14] = "You can pick your friends, you can pick your nose, but do not wipe your friends under the couch."
quote[15] = "Happy Happy Joy Joy!"


now=new Date()
num=(now.getSeconds())%15

document.write(quote[num])

</SCRIPT>

 

Gives you this...

     There are two changes you need to make. The first is to add five more quotes. Mine are good, don't you think? Then you need to make sure those new quotes have the opportunity to be chosen. You do that by changing the %10 to %15.

 

Did You Get It?

 

Back to the Index Page