頁面刷新定位問題

<html>
<head>
<title>刷新</title>
<script laguage="javascript">
<!--
function scrollwin() {
//document.body.scrollTop
var scroll_y = parseInt(<%=Request.QueryString("Scroll_Y")%>);
window.scrollBy(0, scroll_y);
setTimeout("refreshwin()", 3000);
}
function refreshwin() {
var url = "?Scroll_Y=" + document.body.scrollTop;
window.location.href = url;
}
//-->
</script>
</head>
<body onload="javascript:scrollwin();">
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
</body>
</html>

你可能感兴趣的:(刷新)