<script LANGUAGE="JavaScript">
function movstar(a,time){ 
movx=setInterval("mov("+a+")",time) 

function movover(){ 
clearInterval(movx) 

function mov(a){ 
scrollx=new_date.document.body.scrollLeft 
scrolly=new_date.document.body.scrollTop 
scrolly=scrolly+a 
new_date.window.scroll(scrollx,scrolly) 
} </script>
<iframe name=new_date width=396 height=80 marginwidth=0 marginheight=0 hspace=0 vspace=0 frameborder=0 scrolling=no bordercolor="#000000" src="1.htm"></iframe>
<a href='#' onmouseup='movover();movstar(-1,20)'  onmousedown='movover();movstar(-3,2)' onmouseover='movstar(-1,20)' onmouseout='movover()'>向上</a> 
<a href='#' onmouseup='movover();movstar(1,20)'  onmousedown='movover();movstar(3,2)' onmouseover='movstar(1,20)' onmouseout='movover()'>向下</a>

解决方案 »

  1.   

    可以了,但是有个问题,我的iframe的src一变,这功能就不能用了
    比如我从里面的页面连到另一个长页面
      

  2.   

    找到原因了!全在这句话,去掉就能用了~~~<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
      

  3.   

    找到问题了!!罪魁祸首啊!!
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">去掉就好了