随滚动条滚动而浮动的层
程序员文章站
2023-12-25 15:51:21
...
随滚动条滚动而浮动的层
<!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="">
</HEAD>
<BODY onscroll="javaScript:document.getElementById('buttonDiv').style.posTop=document.body.scrollTop;">
<div id="buttonDiv" style="position:absolute;display:block">
<input type="button" value="button" />
</div>
<script>
document.write(new Array(100).join("<br>"))
</script>
</BODY>
</HTML>