复制代码代码如下:
<! 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 = utf-8" />
<title> 无标题文档 </title>
<script type = "text/javaScript">
// 页面上动态时间
Function Time () {
var dt;
var fecha = nueva fecha ();
dt = date.gettylyear ()
+ "/"
+ date.getMonth ()
+ "/"
+ date.getDate ()
+ ""
+ (date.gethours () <= 9? '0' + date.gethours (): fecha
.Gethours ())
+ ":"
+ ((date.getMinutes () <= 9? '0' + date.getminutes (): fecha
.getmines ())))
+ ":"
+ (date.getSeconds () <= 9? '0' + date.getSeconds (): fecha
.getSeconds ());
//document.getelementByid("ht").innerhtml=dt;
devolver dt;
}
setInterval ("document.getElementById ('ht'). innerhtml = time ()", 1000);
</script>
</ablo>
<Body>
<span id = "ht"> </span>
</body>
</html>