頁面刷新定位問題

<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>
posted @ 2006-09-13 13:39  Nina  阅读(410)  评论(0编辑  收藏  举报