js scroll 教程

<html>
<head>
<script language=javascript>
function s(){
var c = window.document.body.scrollHeight;
//window.scroll(x,y)跳转到页面的指定坐标点,目标点是以像素为单位从页面左上角为标记点的距离,水平和垂直滚动条滚动到相应x,y点
window.scroll(0,c);
}
</script>
</head>

<body onload="s()">
<div style="height:10000px;">
fdsfsdf
</div>
</body>
</html>

//360浏览器不好使

posted @ 2015-03-23 18:43  shawn_en  阅读(282)  评论(0编辑  收藏  举报