错误提示 "Uncaught TypeError: Cannot read property 'innerHTML' of null" 什么意思?
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title></title>
</head>
<style type="text/css">
*{
margin: 0;padding: 0;
font-family: "微软雅黑";
font-size: 16px;
color: whitesmoke;
}
ul li{
list-style:none ;
height:40px ;
position: relative;
top: 20px;
left: 20px;
}
ul li:hover{
color: indianred;
}
div{
border: 2px solid #CCCCCC;
width: 400px;
height:300px;
margin: 0 auto;
background-color:#FFB6C1;
overflow:hidden;
}
</style>
<script>
var box=document.getElementById("ibox");
box.innerHTML+=box.innerHTML;
box.scrollTop=0;
function scrollup(){
box.scrollTop++;
if(box.scrollTop%40==0){
clearInterval(time);
}
}
var time=setInterval("scrollup()",50);
</script>
<body>
<div id="ibox">
<ul id="con1">
<li>我记得那美妙的一瞬</li>
<li>在我的面前出现了你</li>
<li>有如昙花一现的幻想</li>
<li>有如纯洁之美的天仙</li>
<li>在那无望的忧愁的折磨中</li>
<li>我耳边长久的响着你温柔的声音</li>
<li>我还在睡梦中见到你可爱的倩影</li>
<li>许多年过去了,暴风雨般的微笑</li>
<li>驱散了往日的梦想</li>
<li>于是我忘却了你的声音</li>
<li>还有你那天仙似的倩影</li>
<li>没有眼泪,没有生命,也没有爱情</li>
</ul>
</div>
</body>
</html>