5 个解决方案
#1
<body onload=document.body.scrollTop=document.body.clientHeight>
<p>ballack<p>ballack<p>ballack<p>ballack<p>ballack
<p>ballack<p>ballack<p>ballack<p>ballack<p>ballack
<p>ballack<p>ballack<p>ballack<p>ballack<p>ballack
<p>ballack<p>ballack<p>ballack<p>ballack<p>ballack
<p>ballack<p>ballack<p>ballack<p>ballack<p>ballack
<p>ballack<p>ballack<p>ballack<p>ballack<p>ballack
#2
为什么只滚了一半?
#3
sorry, a little bug
<body onload="document.body.scrollTop=document.body.scrollHeight">
<p>ballack<p>ballack<p>ballack<p>ballack<p>ballack
<p>ballack<p>ballack<p>ballack<p>ballack<p>ballack
<p>ballack<p>ballack<p>ballack<p>ballack<p>ballack
<p>ballack<p>ballack<p>ballack<p>ballack<p>ballack
<p>ballack<p>ballack<p>ballack<p>ballack<p>ballack
<p>ballack<p>ballack<p>ballack<p>ballack<p>ballack
<p>ballack<p>ballack<p>ballack<p>ballack<p>ballack
<p>ballack<p>ballack<p>ballack<p>ballack<p>ballack
<p>ballack<p>ballack<p>ballack<p>ballack<p>ballack
<body onload="document.body.scrollTop=document.body.scrollHeight">
<p>ballack<p>ballack<p>ballack<p>ballack<p>ballack
<p>ballack<p>ballack<p>ballack<p>ballack<p>ballack
<p>ballack<p>ballack<p>ballack<p>ballack<p>ballack
<p>ballack<p>ballack<p>ballack<p>ballack<p>ballack
<p>ballack<p>ballack<p>ballack<p>ballack<p>ballack
<p>ballack<p>ballack<p>ballack<p>ballack<p>ballack
<p>ballack<p>ballack<p>ballack<p>ballack<p>ballack
<p>ballack<p>ballack<p>ballack<p>ballack<p>ballack
<p>ballack<p>ballack<p>ballack<p>ballack<p>ballack
#4
document.all.result.scrollTop+=100000;
result是一个可以滚动的id
100000这个数要足够大,其实多大没有顶。
result是一个可以滚动的id
100000这个数要足够大,其实多大没有顶。
#5
<html>
<head>
<script>
var y=0
function move()
{
var timeoutid=null
if(y<400)
{
y++
scroll(0,y)
clearTimeout(timeoutid)
timeoutid=setTimeout("move()",100)
}
else{
clearTimeout(timeoutid)
scroll(0,0)
}
}
</script>
</head>
<body onload="move()"><BR>
1<br>
1<br>
1<br>
1<br>
1<br>
1<br>
1<br>
1<br>
1<br>
1<br>
1<br>
1<br>
1<br>
1<br>
1<br>
1<br>
1<br>
1<br>
1<br>
1<br>
1<br>
1<br>
1<br>
1<br>
1<br>
1<br>
1<br>
1<br>
1<br>
1<br>
1<br>
1<br>
1<br>
1<br>
1<br>
</body>
</html>
不好意思,基本上都是“偷“别人的
<head>
<script>
var y=0
function move()
{
var timeoutid=null
if(y<400)
{
y++
scroll(0,y)
clearTimeout(timeoutid)
timeoutid=setTimeout("move()",100)
}
else{
clearTimeout(timeoutid)
scroll(0,0)
}
}
</script>
</head>
<body onload="move()"><BR>
1<br>
1<br>
1<br>
1<br>
1<br>
1<br>
1<br>
1<br>
1<br>
1<br>
1<br>
1<br>
1<br>
1<br>
1<br>
1<br>
1<br>
1<br>
1<br>
1<br>
1<br>
1<br>
1<br>
1<br>
1<br>
1<br>
1<br>
1<br>
1<br>
1<br>
1<br>
1<br>
1<br>
1<br>
1<br>
</body>
</html>
不好意思,基本上都是“偷“别人的
#1
<body onload=document.body.scrollTop=document.body.clientHeight>
<p>ballack<p>ballack<p>ballack<p>ballack<p>ballack
<p>ballack<p>ballack<p>ballack<p>ballack<p>ballack
<p>ballack<p>ballack<p>ballack<p>ballack<p>ballack
<p>ballack<p>ballack<p>ballack<p>ballack<p>ballack
<p>ballack<p>ballack<p>ballack<p>ballack<p>ballack
<p>ballack<p>ballack<p>ballack<p>ballack<p>ballack
#2
为什么只滚了一半?
#3
sorry, a little bug
<body onload="document.body.scrollTop=document.body.scrollHeight">
<p>ballack<p>ballack<p>ballack<p>ballack<p>ballack
<p>ballack<p>ballack<p>ballack<p>ballack<p>ballack
<p>ballack<p>ballack<p>ballack<p>ballack<p>ballack
<p>ballack<p>ballack<p>ballack<p>ballack<p>ballack
<p>ballack<p>ballack<p>ballack<p>ballack<p>ballack
<p>ballack<p>ballack<p>ballack<p>ballack<p>ballack
<p>ballack<p>ballack<p>ballack<p>ballack<p>ballack
<p>ballack<p>ballack<p>ballack<p>ballack<p>ballack
<p>ballack<p>ballack<p>ballack<p>ballack<p>ballack
<body onload="document.body.scrollTop=document.body.scrollHeight">
<p>ballack<p>ballack<p>ballack<p>ballack<p>ballack
<p>ballack<p>ballack<p>ballack<p>ballack<p>ballack
<p>ballack<p>ballack<p>ballack<p>ballack<p>ballack
<p>ballack<p>ballack<p>ballack<p>ballack<p>ballack
<p>ballack<p>ballack<p>ballack<p>ballack<p>ballack
<p>ballack<p>ballack<p>ballack<p>ballack<p>ballack
<p>ballack<p>ballack<p>ballack<p>ballack<p>ballack
<p>ballack<p>ballack<p>ballack<p>ballack<p>ballack
<p>ballack<p>ballack<p>ballack<p>ballack<p>ballack
#4
document.all.result.scrollTop+=100000;
result是一个可以滚动的id
100000这个数要足够大,其实多大没有顶。
result是一个可以滚动的id
100000这个数要足够大,其实多大没有顶。
#5
<html>
<head>
<script>
var y=0
function move()
{
var timeoutid=null
if(y<400)
{
y++
scroll(0,y)
clearTimeout(timeoutid)
timeoutid=setTimeout("move()",100)
}
else{
clearTimeout(timeoutid)
scroll(0,0)
}
}
</script>
</head>
<body onload="move()"><BR>
1<br>
1<br>
1<br>
1<br>
1<br>
1<br>
1<br>
1<br>
1<br>
1<br>
1<br>
1<br>
1<br>
1<br>
1<br>
1<br>
1<br>
1<br>
1<br>
1<br>
1<br>
1<br>
1<br>
1<br>
1<br>
1<br>
1<br>
1<br>
1<br>
1<br>
1<br>
1<br>
1<br>
1<br>
1<br>
</body>
</html>
不好意思,基本上都是“偷“别人的
<head>
<script>
var y=0
function move()
{
var timeoutid=null
if(y<400)
{
y++
scroll(0,y)
clearTimeout(timeoutid)
timeoutid=setTimeout("move()",100)
}
else{
clearTimeout(timeoutid)
scroll(0,0)
}
}
</script>
</head>
<body onload="move()"><BR>
1<br>
1<br>
1<br>
1<br>
1<br>
1<br>
1<br>
1<br>
1<br>
1<br>
1<br>
1<br>
1<br>
1<br>
1<br>
1<br>
1<br>
1<br>
1<br>
1<br>
1<br>
1<br>
1<br>
1<br>
1<br>
1<br>
1<br>
1<br>
1<br>
1<br>
1<br>
1<br>
1<br>
1<br>
1<br>
</body>
</html>
不好意思,基本上都是“偷“别人的