可以根据自己的需要更改里面具体的参数,鼓捣的次数错了就明白了,也学到东西了,别怕出错误,大不了再来复制一次代码重新再来[CODE]<BODY OnLoad="setVariables();checkLocation()">
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
function setVariables() {
if (navigator.appName == "Netscape") {
v=".top=";
dS="document.";
sD="";
y="window.pageYOffset";
}
else {
v=".pixelTop=";
dS="";
sD=".style";
y="document.body.scrollTop";
}
}
function checkLocation() {
object="object1";
yy=eval(y);
eval(dS+object+sD+v+yy);
setTimeout("checkLocation()",10);
}
// End -->
</script>
<div id="object1" style="position:absolute; visibility:show; left:0px; top:0px; z-index:2">
<img src="
http://www.bc-cn.net/bbs/aaa/logo.gif">
</div>
<div style="height:900px;"></div>
</BODY> [/CODE]