应该这样写parent.document.B.scrollUp();
parent属性获取上一层window对象

解决方案 »

  1.   

    在被框架引用的页面里
    <body style="overflow:auto">
      

  2.   

    to fluxayxxx(阿茂) :我是要在页面A里控制B的滚动的,怎么还能用parent?没有再上一层Window了。to  shyslysky(飞天) :我是要通过连接控制滚动,不要滚动条.
      

  3.   

    问题在于window对象好像没有scrollUp这个方法。
      

  4.   

    <SCRIPT  language="javascript">
    <!--
    function movstar(a,time){
    movx=setInterval("mov("+a+")",10)
    }
    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  border=0 frameborder=0 framespacing=0 height='100%' marginheight=0 marginwidth=0 name=new_date noResize scrolling=no  src="littlehtml/news.htm" width='100%'  vspale="0"></iframe>
    ... ...<img onMouseDown="movover();movstar(-8,2)" onMouseOut="movover()"                   onMouseOver="movstar(-1,20)" onMouseUp="movover();movstar(-1,20)" height=11 
                src="images/up.jpg" width=11 border=0 alt=":::向上:::">
      

  5.   

    thx xjdawu(生于虚幻死于现实)