<script language="JavaScript">
<!-- ;
// numberguess is by Lancer - written 4 Jan 1999
// lancer@kp.planet.gen.nz
var guessme=Math.round(Math.random()*(99)+1);
var speech='Guess my number (from 1 to 100)';
function process(mystery) {
var guess=document.forms.guessquiz.guess.value;
var speech='"'+guess+ '" does not make sense to me.';
document.forms.guessquiz.guess.value='';
if (guess==mystery)
{
document.forms.guessquiz.prompt.value='Congratulations! '+mystery+' is correct!';
alert ('Well done - the mystery number is '+mystery+'! \n\nPress this button to reload the page for another game.');
speech='';
document.location=document.location;
}
if (mystery<guess)
{
speech='Less than '+ guess;
}
if (mystery>guess)
{
speech='Greater than '+ guess;
}
if (guess=='')
{
speech='You didn\'t guess anything!'
}
document.forms.guessquiz.prompt.value=speech; document.forms.guessquiz.guess.focus();
}
// end hide -->
</script>
<form name="guessquiz" onsubmit="">
<center>
<table align="CENTER" bgcolor="#888888" border="3" cellpadding="5">
<tbody><tr>
<td bgcolor="#004080">
<font color="#ffffff" face="Arial"><b>GUESS MY NUMBER (1 - 100)</b></font>
</td>
</tr>
<tr>
<td>
<center>
<input autofill-information="overall type: UNKNOWN_TYPE
server type: NO_SERVER_DATA
heuristic type: UNKNOWN_TYPE
label: GUESS MY NUMBER (1 - 100)
parseable name:
section: _1-default
field signature: 1318412689
form signature: 7601272441658122221
form renderer id: 3
field renderer id: 27" autofill-prediction="UNKNOWN_TYPE" maxlength="40" name="prompt" size="31" title="overall type: UNKNOWN_TYPE
server type: NO_SERVER_DATA
heuristic type: UNKNOWN_TYPE
label: GUESS MY NUMBER (1 - 100)
parseable name:
section: _1-default
field signature: 1318412689
form signature: 7601272441658122221
form renderer id: 3
field renderer id: 27" type="text" value="Guess my number (from 1 to 100)" /><br />
<input autofill-information="overall type: UNKNOWN_TYPE
server type: NO_SERVER_DATA
heuristic type: UNKNOWN_TYPE
label: GUESS MY NUMBER (1 - 100)
parseable name:
section: _1-default
field signature: 1318412689
form signature: 7601272441658122221
form renderer id: 3
field renderer id: 28" autofill-prediction="UNKNOWN_TYPE" maxlength="3" name="guess" size="3" title="overall type: UNKNOWN_TYPE
server type: NO_SERVER_DATA
heuristic type: UNKNOWN_TYPE
label: GUESS MY NUMBER (1 - 100)
parseable name:
section: _1-default
field signature: 1318412689
form signature: 7601272441658122221
form renderer id: 3
field renderer id: 28" type="text" value="" />
<input onclick="process(guessme)" type="button" value="Guess" />
</center>
</td>
</tr>
</tbody></table>
</center>
</form>