Make your own free website on Tripod.com

~Chao Li~

~Kumo no Mukou, Yakusoku no Basho~

 
~~~~

var temp = 0; var perfectTemp = 77; temp = Math.floor(Math.random() * 100) + 1; alert ("It's " +temp+ " degrees outside."); if (temp < perfectTemp) { alert ("It's cold!!"); } else { alert ("It's hot!!"); }//end if ><html>
<head>
<title>highOrlow</title>
<script>
//highOrlow
//Chao Li. October 3, 2007.
//Demonstrates the if -/- else structure

var temp = 0;
var perfectTemp = 77;

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

if (temp < perfectTemp)
{
alert ("It's cold!!");
}

else
{
alert ("It's hot!!");
}//end if

</script>
</head>

<body>
<center><center>
<h1>highOrlow<br></h1>
</center>
<hr>
<hit Reload to see anohter temperature</h3>
</body>
</html>

 
 
 
~~~~