复制代码代码如下:
<! DocType html public "-// w3c // dtd xhtml 1.0 Transitional // en" "http://www.w3.org/tr/xhtml1/dtd/xhtml1-transicional.dtd ">
<html xmlns = "http://www.w3.org/1999/xhtml">
<Evista>
<meta http-equiv = "content-type" content = "text /html; charset = gb2312" />
<title> TimeOut </title>
</ablo>
<Body Onload = "CountSecond ()">
<input type = "text" id = "time" style = "border: 0px;" size = "1px">
</body>
</html>
<script>
x = 0
function countSecond ()
{x = x+1
document.getElementById ("tiempo"). valor = x;
setTimeout ("CountSecond ()", 1000)
}
</script>