怎样把滚动条移到一夜的最下部?

xh_zhou 2000-08-15 08:37:00
怎样在打开网页时自动把网页的滚动条一到一叶的最下部?
...全文
123 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
VictorYu 2000-08-15
  • 打赏
  • 举报
回复
呵呵, huntout的想法比较好罗
huntout 2000-08-15
  • 打赏
  • 举报
回复
在</html>的前面加入︰
<a name='endFlag' id='endFlag'>

在<head>...</head>之間加入︰
<script language=javascript for=window event=onload>
document.all("endFlag").scrollIntoView(false);
</script>
xtjack 2000-08-15
  • 打赏
  • 举报
回复
在</head>和<body>之间写入:
<SCRIPT LANGUAGE="JavaScript">
<!--
var scrollOnFunction;
var scrollOffFunction;

function scrollit(){
if(!parent.d.document.inputform.as.checked){
autoScrollOn=0;return true;
}else
{
autoScrollOn=1;
StartUp();
return true;
}
}
function scrollWindow( ){
if ( autoScrollOn == 1 ){
this.scroll(0, 65000);
setTimeout('scrollWindow()',200);
}
}
function scrollOn( ){
autoScrollOn = 1;
scrollWindow( );
}
function scrollOff( ){
autoScrollOn = 0;
}
function StartUp( ){
this.onblur = scrollOnFunction;
this.onfocus = scrollOffFunction;
scrollWindow( );
}
scrollOnFunction = new Function('scrollOn( )')
scrollOffFunction = new Function('scrollOff( )')
StartUp();
//--></script>
xh_zhou 2000-08-15
  • 打赏
  • 举报
回复
谢谢大家

28,390

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧