visit my site:http://go.to/thepenaltyspot
Simba says Roar.
Latest news
Pharoah's Tomb Game
The
Tomb of Amon-Seti III
by Bill Buchanan (July 1999) About this program
(Please be patient while the graphics and arrays are loaded...)
Magic 8-Ball
This is the Magic 8-Ball! Ask it any yes or no question, and it has an answer for your personal, business, or social problems or questions.
|
Place this code inside the <HEAD></HEAD> tags:
<SCRIPT LANGUAGE="JavaScript">
<!-- Hide this script from old browsers --
function eraser() {
document.form.answer.value = "";
}
function eightball() {
var question = document.form.question.value ;
var quotenumber = 14 ;
var randomnumber = Math.random() ;
var rand1 = Math.round( (quotenumber-1) * randomnumber) + 1 ;
var delay = 5000;
quotes = new Array
quotes[1] = "Don't count on it!"
quotes[2] = "Very doubtful."
quotes[3] = "It is decidedly so."
quotes[4] = "Outlook good!"
quotes[5] = "Better not tell you!"
quotes[6] = "As I see it, YES!"
quotes[7] = "Nope!"
quotes[8] = "It is certain."
quotes[9] = "Without a doubt!"
quotes[10] = "Don't get your hopes up!"
quotes[11] = "Sign points to yes!"
quotes[12] = "Definately not!!"
quotes[13] = "Concentrate and ask again."
quotes[14] = "My sources say no."
var quote = quotes[rand1]
answer=window.setTimeout("eraser()", delay);
document.form.answer.value = quote;
document.form.question.value = "";
}
}
// -- End Hiding Here -->
</SCRIPT>
And place this inside the <BODY></BODY> tags:
<FORM NAME="form">
<TEXTAREA NAME="question" ROWS="5" COLS="50" WRAP="virtual"></TEXTAREA><P>
<CENTER><INPUT TYPE="button" onClick="eightball()" VALUE="Answer">
<INPUT TYPE="text" SIZE="30" NAME="answer">
</CENTER>
</BLOCKQUOTE>
</FORM>