logo
Ryan's Webpage
 

fortune

fortune


reload for another fortune

<html>
<head>
<title>fortune</title>
<script>
// 10/4/07
// by Ryan Te
// The fortune Teller

var roll = 0;
var fortune = "";

roll = Math.floor(Math.random() *5) + 1;
switch(roll){
case 1:
fortune = "I think you'll get an A today.";
break;
case 2:
fortune = "You get an F today.";
break;
case 3:
fortune = "Today is not your day.";
break;
case 4:
fortune = "Today is definitely not your day.";
break;
case 5:
fortune = "Tomorow will be good.";
break;
default:
fortune = "ERROR";
} // end switch
alert(fortune);

</script>
</head>
<body>
<center><center>
<h1>fortune</h1>
</center>
<hr>
<h3>reload for another fortune</h3>

</body>
</html>

 

 

Contact Me

 

Mr. Styner's Webpage

 

Peter

Julie

Nick

Tiddus

Norman