我想回显<div id="details">
内部时钟,并在标题做同样的剧本是这样的: -设置HTML内容的JavaScript
<html>
<head>
<title>Showing time at title</title>
<script language="javascript">
function showTimes(){
myDate= new Date()
realTimes= "Time now " + myDate.getHours() + " : "
realTimes= realTimes + myDate.getMinutes() + " : "
realTimes= realTimes + myDate.getSeconds() + "."
realTimes= realTimes + myDate.getMilliseconds()
document.title=realTimes
setTimeout("showTimes()",100)
}
</script>
</head>
<body onLoad="showTimes()">
<img src="img/s8.jpg">
</body>
</html>
怎能我重写剧本? Thanksalot ...
它的工作原理!非常感谢!! – Ham