<html><head>
<script LANGUAGE="JavaScript">
<!-- ;
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='- Mantiksiz tahmin yapmayın ! ';
document.forms.guessquiz.guess.value='';
if (guess==mystery)
{
document.forms.guessquiz.prompt.value='Tebrikler :) ! '+mystery+' dogru tahmin!';
alert ('Dogru bildin. Tutmus oldugum sayi '+mystery+' idi ! \n\nTamam dügmesine tiklayarak bu sayfada baska bir oyuna baslayabilirsin.');
speech='';
document.location=document.location;
}
if (mystery<guess)
{
speech='- '+ guess +' sayisindan küçük';
}
if (mystery>guess)
{
speech='- '+ guess +' sayisindan büyük';
}
if (guess=='')
{
speech='- Lütfen bir sayi tahmin et!'
}
document.forms.guessquiz.prompt.value=speech; document.forms.guessquiz.guess.focus();
}
// end hide -->
</script>
<title>Sayı Tahmin Oyunu</title></head>
<body bgcolor="#FFFFFF">
<table border="1" width="300" bordercolor="#000000"
cellspacing="0" cellpadding="2" align="center">
<tr>
<td width="100%" bgcolor="#0066FF" align="center"><font face="Verdana" color="#D1CEA7"><strong><font color="#FFFFFF">Sayi
Tahmini Oyunu</font></strong></font></td>
</tr>
<tr>
<td width="100%" bgcolor="#CCCCCC" align="center">
<FORM onSubmit="" NAME="guessquiz">
<input type="text" name="prompt" size="33" value="- 1 ile 100 arasinda bir sayi tuttum"
style="font-family: Verdana; font-size: smaller; color: rgb(44,48,56); font-weight: bold; border: medium none"><br>
<font color="#AEA962">.</font><br>
<input type="text" name="guess" size="6">
<font color="#AEA962"> ::</font><font
color="#808040"> </font>
<input type="button"
value="Tahmin Et" name="B1"
style="background-color: color: rgb(255,255,255)"
onClick="process(guessme)">
</form>
<a href="http://www.hazirkod.com" target="_blank"
style="font-family: Verdana; font-size: xx-small;"><small>Hazirkod.com</small></a></td>
</tr>
</table>
</body>
<html>