html 与 随之窗口滚动 不兼容问题

来源:百度知道 编辑:UC知道 时间:2024/05/30 10:34:07
<!DOCTYPE 与 随之窗口滚动 不兼容 问题!! 急急急急急急
悬赏分:15 - 离问题结束还有 14 天 23 小时
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title></title>
<script language="javascript">

imgleft=125;
imgHeight=350;

function imgmove(){
mylayer.style.top=document.body.scrollTop+document.body.offsetHeight-imgHeight;
mylayer.style.left=document.body.offsetWidth-imgleft;
mylayer1.style.top=document.body.scrollTop+document.body.offsetHeight-imgHeight;
mylayer1.style.right=document.body.offsetWidth-imgleft;
setTimeout("imgmove()",80);
}
</script>
</head>

<body onLoad="imgmove()">
<h1> </h1>
<h1> </h1>
<h1> </h1>
<h1> </h1>
<h1> </h1>
<h1> </h1>
<h1> </h1>

因为你的JS代码里头有不符合W3C标准的语句~就这么简单~

这个是html声明,相当于执行机制,没有这个就会有问题
参考地址 http://hi.baidu.com/cpilq/blog/item/47415002a23158074afb513d.html