帮我看看以下代码能否控制div层随下拉滚动条而滚动
<SCRIPT language=JavaScript>
lastScrollY=0;
function backtop()
{
diffY=document.body.scrollTop;
percent=.1*(diffY-lastScrollY);
if(percent>0)
{
percent=Math.ceil(percent);
}
else
{
percent=Math.floor(percent);
}
document.all.MovedDiv.style.pixelTop+=percent;
lastScrollY=lastScrollY+percent;
}
window.setInterval("backtop()",10);
</SCRIPT>
<style type="text/css">
<!--
.STYLE1 {font-size: 12px}
-->
</style>
<DIV id=MovedDiv >