Lesson 34: The Script and Its Effect
The Script
<SCRIPT LANGUAGE="JavaScript">
var0="An Apple a Day"
var1="A Stitch in Time"
var2="Bird in the Hand"
now=new Date()
num=(now.getSeconds() )%3
document.write("Random Number: " + num + "
")
if (num == 0)
{cliche=var0}
if (num == 1)
{cliche=var1}
if (num == 2)
{cliche=var2}
document.write(cliche)
</SCRIPT>
<p>....as I always say.
The Script's Effect
....as I always say.
Back to the Index Page