下面是我写的代码 ,可是运行时点 击按钮 会提示 缺少对象,想知道为什么 谢谢大侠们啊!连接的css代码在最后面。
<html>
 <head>
  <title> Javascript try </title>
  <meta name="Generator" content="EditPlus">
  <meta name="Author" content="">
  <meta name="Keywords" content="">
  <meta name="Description" content="">
  <link rel="stylesheet" type="text/css" href="javascrip.css" />
 </head>
 <body>
  <div id="container">
  <table id="time" cellpadding="4" cellspace="6" frame="void">
  <tr><th>year</th><th>month</th><th>day</th></tr>
  <tr><td id="year"></td><td id="month"></td><td id="day"></td></tr>
  <tr><td id="hour"></td><td id="minute"></td><td id="second"></td></tr>
  </table>
  <input type="submit" onclick=load() />  <script type="text/javascriopt">
var yearAddress=document.getElementById("year");
var monthAddress=document.geElementById("month");
var dayAddress=document.getElementById("day");
var hourAddress=document.getElemtntById("hour");
var minuteAddress=document.getElementById("minute");
var secondAddress+document.getElementById("second");
var newTextNode;
function updateTime()
{
var nowTime=new Date();
newTextNode=document.createTextNode(nowTime.getFullYear());
yearAddress.appendChild(newTextNode);
newTextNode=document.createTextNode(noeTime,getMonth());
monthAddress.appendChild(newTextNode);
newTextNode=document.createTextNode(noeTime,getDate());
dayAddress.appendChild(newTextNode);
} function load()
{
setInterval(updateTime(),2000);
}
  </script>
  
  </div>
css代码
table#time {text-align:center;vertical-align:middle;}
table#time tr td,table#time tr th{width:90px;height:40px;border:4px blue solid;}