dcsimg

Lesson 46: The Script and Its Effect



The Script

A Ranom Quote:<P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;

<SCRIPT LANGUAGE="JavaScript">

var quote = new Array(10);
quote[0] = "Never will come up.";
quote[1] = "Chance favors the prepared mind.";
quote[2] = "A stitch in time, saves nine.";
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] = "Happiness is two kinds of ice cream.";
quote[6] = "If you choose not to make a choice, you still have made a decision.";
quote[7] = "Do, or do not. There is no try."
quote[8] = "Reality is merely an illusion, albeit a very persistent one."
quote[9] = "No one ever said life would be easy."


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

document.write(quote[num])

</SCRIPT>

 

The Script's Effect

 

Back to the Index Page