Make your own free website on Tripod.com

~Chao Li~

~Kumo no Mukou, Yakusoku no Basho~

 
~~~~

<html>
<head>
<title>lowTemp</title>
<script>
//lowTemp
//Chao Li. October 1, 2007.
//Demestrates the basic if statement

var temp = 0;
var perfectTemp = 65;

temp = Math.floor(Math.random() * 100) +1;
alert ("It's " +temp+ " degrees outside.");

if (temp < perfectTemp) {
alert ("Wear a sweater!!");
} // end if

</script>
</head>

<body>
<center><center>
<h1>lowTemp<br></h1>
</center>
<hr>
<h3>Hit the Reload to see anoher temperature</h3>
</body>
</html>

 
 
 
~~~~