|
<script>
//modified fortune teller
//David Fang , 10/7/07
var roll;
var fortune;
roll = Math.floor(Math.random() *6) +1;
switch (roll)
{
case 1:
fortune = "I will haunt you for the rest of your life";
break;
case 2:
fortune = "Prepare to be ice creamorized with Vanilla";
break;
case 3:
fortune = "You will meet the love of you life in 3 days";
break;
case 4:
fortune = "He, who shall live, lives";
break;
case 5:
fortune = "You will be rich in 2099";
break;
case 6:
fortune = "The NWE Patriots will win the super bowl";
break;
default:
fortune="ERROR";
}
alert(fortune);
</script>
|
Links
1. SLHS
2. SLHSXC
3. JMMS
Contact me
Class links
Computer Science
Five Classmates
1. Julio Maravilla
2. Norman Duong
3. Huy Vo
4. Titus Green
5. Jack Li
|