不执行滚动。。是什么问题
<script>
var p1= document.getElementById('p1'),
p2= document.getElementById('p2'),
div1= document.getElementById('div1');
p1.innerHTML = p2.innerHTML;
function scrollUp(){
if(div1.scrollTop >= p1.offsetHeight){
div1.scrollTop=0;
}else{
div1.scrollTop++;
}
}
var time = 50;
var myScroll = setInterval('scrollUp()',time);
</script>