87,839
社区成员




<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
<style>
#btn1{position:fixed;right:0;bottom:0;}
</style>
<script>
window.onload=window.onscroll=function()
{
var oBtn1=document.getElementById("btn1");
var scrollTop=document.body.scrollTop||document.documentElement.scrollTop;
oBtn1.onclick=function()
{
scrollTop=0;
}
}
</script>
</head>
<body style="height:2000px">
<input id="btn1" type="button" value="回到顶部">
</body>
</html>