http://www.cwecn.com/westtravel/jave.html
你看看这个页面,一样的

解决方案 »

  1.   


    <iframe name=new_date src='a.htm'></iframe>            <IMG alt=点住不放可以快速向左滚动 class=opacity height=16            onmousedown=movover();movstar(-20,3) onmouseout=movover();            onmouseover=movstar(-4,5);            onmouseup=movover();movstar(-4,5)             src="left.gif" width=16>
                <IMG alt=点住不放可以快速向右滚动 class=opacity height=16            onmousedown=movover();movstar(20,3) onmouseout=movover();            onmouseover=movstar(4,5);            onmouseup=movover();movstar(4,5)             src="right.gif" width=16>
    <SCRIPT>
    var movx;
    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>
      

  2.   

    上面的你自己的代码,你有没有认真的看哟
    函数名称都不一样,当然对象不存在的呀
    函数名都没有e的,你调用的地方却有e
    function movstar(a,time){
    movx=setInterval("mov("+a+")",time)
    }
    function movover(){
    clearInterval(movx)
    }