colora i bottoni ma non mi inserisce più i numeri nell'apposito form![]()
<HTML>
<HEAD>
<TITLE>privato</TITLE>
<SCRIPT language="JavaScript">
var usermulcode=189
var code=0
var mul=1
var digit=0
var fails=0
function Enter_code(number)
{
code=code*10+number
mul=mul*number
document.codepad.thecode.value=code
digit++
if (digit==4)
{
if (mul==189)
{
location=code+"privato.htm"
}
else
{
fails++
code=0
mul=1
digit=0
if (fails<3)
{
if (fails==1)
{document.codepad.thecode.value="riprova"}
if (fails==2)
{document.codepad.thecode.value="ultima volta"}
}
else
{
location="java.htm"
document.codepad.thecode.value="A presto!"
}
}
}
}
function keycodepad(mulcode)
{
usermulcode=mulcode
document.write("<form name=\"codepad\">");
document.write("<input type=\"button\" value=\" 1 \" onClick=\"Enter_code(1)\">");
document.write("<input type=\"button\" value=\" 2 \" onClick=\"Enter_code(2)\">");
document.write("<input type=\"button\" value=\" 3 \" onClick=\"Enter_code(3)\">
");
document.write("<input type=\"button\" value=\" 4 \" onClick=\"Enter_code(4)\">");
document.write("<input type=\"button\" value=\" 5 \" onClick=\"Enter_code(5)\">");
document.write("<input type=\"button\" value=\" 6 \" onClick=\"Enter_code(6)\">
");
document.write("<input type=\"button\" value=\" 7 \" onClick=\"Enter_code(7)\">");
document.write("<input type=\"button\" value=\" 8 \" onClick=\"Enter_code(8)\">");
document.write("<input type=\"button\" value=\" 9 \" onClick=\"Enter_code(9)\">
");
document.write("<input type=\"text\" name=\"thecode\" size=10 value=\"\">
");
document.write("</form>");
}
/
</SCRIPT>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"></HEAD>
<BODY bgcolor="#AEE4FE" text="#000000" vlink="#1A5985" alink="#1A5985" >
<FORM name="codepad">
<div align="center">
<INPUT type="button" value=" 1 " style="background-color:#83BFFD" onClick="Enter_code(1)">
<INPUT type="button" value=" 2 " style="background-color:#83BFFD" onClick="Enter_code(2)">
<INPUT type="button" value=" 3 " style="background-color:#83BFFD" onClick="Enter_code(3)">
<INPUT type="button" value=" 4 " style="background-color:#83BFFD" onClick="Enter_code(4)">
<INPUT type="button" value=" 5 " style="background-color:#83BFFD" onClick="Enter_code(5)">
<INPUT type="button" value=" 6 " style="background-color:#83BFFD" onClick="Enter_code(6)">
<INPUT type="button" value=" 7 " style="background-color:#83BFFD" onClick="Enter_code(7)">
<INPUT type="button" value=" 8 " style="background-color:#83BFFD" onClick="Enter_code(8)">
<INPUT type="button" value=" 9 " style="background-color:#83BFFD" onClick="Enter_code(9)">
<INPUT type="text" name="thecode" size=8 value="">
</div>
</FORM>
<div align="center"><font face="Comic Sans MS">quest'area è riservata
ad uso privato</font></div>
</body>
</html>