页面自动滚动
这段程序放在<head>与</head>之
<SCRIPT LANGUAGE="JAVASCRIPT">
<!--
var position = 0;
var timeoutid=null;
function scrollhtml() {
if (position < 400 ){
position++;
scroll(0,position);
clearTimeout(timeoutid);
timeoutid = setTimeout("scrollhtml()",100); }
else{
clearTimeout(timeoutid);
scroll(0,0);
}}
-->
</SCRIPT>
这段程序放在<body>与</body>之间
<input type="button" name="submit" value="开始滚动" onClick="scrollhtml()">