Modified Fortune Teller
<script>
//fortune teller
//Julio Maravilla October 4, 2007
var roll;
var fortune,
roll=Math.floor(Math.random() * 5) + 1;
switch (roll)
{
case 1:
fortune = "You will experience that which you desire most in the near future.";
break;
case 2:
fortune = "You will get the grade you know you deserved";
break;
case 3:
fortune= "Things are sunny on the horizon=D";
break;
case 4:
fortune= "You will find the love of your life =D";
break;
case 5:
fortune= "Don't overthink things, just act!";
break;
default:
fortune="ERROR! =["
}
alert(fortune);
</script>
|
|