<!DOCTYPE HTML PUBLIC
"-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE> New
Document </TITLE>
<META NAME="Generator"
CONTENT="EditPlus">
<META NAME="Author"
CONTENT="">
<META NAME="Keywords"
CONTENT="">
<META NAME="Description"
CONTENT="">
<script
language="javascript">
function test(){
document.getElementByIdx_x("sc").style.pixelTop =
document.body.scrollTop+200;
}
window.onscroll = test;
function colosediv(){
document.getElementByIdx_x("sc").style.display =
"none";
}
</script>
</HEAD>
<BODY>
<div id =
"sc"style="width:100px;height:100px;backGround:red;position:absolute;top=200px;
">
<div style="float:right;"
onClick="colosediv()">关闭</div>
</div>
下面多写几个换行。出现滚动条
</BODY>
</HTML>