Non capisco perchè non funziona questo script:
codice:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title></title>
<script type="text/javascript">
<!--
//variabili per orologio
o = 10;
m = 10;
s = 10;
function orologio(){
s++;
if(s > 60){
m++;
s = 0;
}
if(m > 60){
o++;
m = 0;
}
if(o > 24){
o = 0;
}
document.getElementById("orologio").value=o+":"+m+":"+s;
}
orologio();
//-->
</script>
</head>
<body>
<form action=""><input type="text" id="orologio" value="prova" /></form>
</body>
</html>
Grazie