Make your own free website on Tripod.com
 
Home
ActionScript
Blog

Chapter 1

Chapter 2

Chapter 3

Chapter 4

Chapter 5

Chapter 6

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Fortune Teller

<script>
//fortune
//Catherine Casuat 10/3/07
//The Fortune Teller

var roll = 0;
var fortune = "";

roll = Math.floor(Math.random() * 5) + 1;

switch(roll){

case 1:
fortune = "It looks really bad.";
break;

case 2:
fortune = "It's kinda gloomy.";
break;

case 3:
fortune = "Whatever.";
break;

case 4:
fortune = "Things are pretty good.";
break;

case 5:
fortune = "You're in for a perfect day.";
break;

default:
fortune = "ERROR.";

} //end switch

alert(fortune);

</script>