利用事件:document.onscroll
你可以用document.body.scrollTop的到滚动条的位移,然后把这个参数传给另一个FRAME的scrollTop

解决方案 »

  1.   

    <table width='100%' border='0'  cellspacing='0' cellpadding='0'>
    <tr>
    <td valign=top width=1%>
    <div id=the10Div style="height:100;overflow-x:hidden;overflow-y:auto;" onscroll= "the11Div.scrollTop=scrollTop ">
    <table id=the10Table width='100%' cellspacing='1' border='0' cellpadding='0' >
    <tr height=22 >
    <td nowrap bgcolor="#66CCFF" >Thank you!</td>
    <td nowrap bgcolor="#66CCFF" >You are welcome!</td>
    </tr> 
    <tr height=22><td>a</td><td>&nbsp;</td></tr>
    <tr height=22><td>a</td><td>&nbsp;</td></tr>
    <tr height=22><td>a</td><td>&nbsp;</td></tr>
    <tr height=22><td>a</td><td>&nbsp;</td></tr>
    <tr height=22><td>a</td><td>&nbsp;</td></tr>
    <tr height=22><td>a</td><td>&nbsp;</td></tr>
    <tr height=22><td>a</td><td>&nbsp;</td></tr>
    <tr height=22><td>a</td><td>&nbsp;</td></tr>
    <tr height=22><td>a</td><td>&nbsp;</td></tr>
    <tr height=22><td>a</td><td>&nbsp;</td></tr>
    <tr height=22><td>a</td><td>&nbsp;</td></tr>
    <tr height=22><td>a</td><td>&nbsp;</td></tr>
    <tr height=22><td>a</td><td>&nbsp;</td></tr>
    <tr height=22><td>a</td><td>&nbsp;</td></tr>
    <tr height=22><td>a</td><td>&nbsp;</td></tr>
    <tr height=22><td>a</td><td>&nbsp;</td></tr>
    <tr height=22><td>a</td><td>&nbsp;</td></tr>
    <tr height=22><td>a</td><td>&nbsp;</td></tr></table>
    <br>
    </div>
    </td>
    <td valign=top ><div id=the11Div style="width:450; height:100;overFlow-x:auto;overflow-y:hidden;" onscroll= "the10Div.scrollTop=scrollTop;">
    <table id=the11Table width='100%' cellspacing='1' border='0' cellpadding='0' >
    <tr height=22>
    <td nowrap bgcolor="#66CCFF" >How are you? How are you?How are you? How are you?How are you? How are you?How are you? How are you? </td>
    <td nowrap bgcolor="#66CCFF" >I am fine! I am fine! I am fine! I am fine! </td>
    </tr>
    <tr height=22><td>a</td><td>&nbsp;</td></tr>
    <tr height=22><td>a</td><td>&nbsp;</td></tr>
    <tr height=22><td>a</td><td>&nbsp;</td></tr>
    <tr height=22><td>a</td><td>&nbsp;</td></tr>
    <tr height=22><td>a</td><td>&nbsp;</td></tr>
    <tr height=22><td>a</td><td>&nbsp;</td></tr>
    <tr height=22><td>a</td><td>&nbsp;</td></tr>
    <tr height=22><td>a</td><td>&nbsp;</td></tr>
    <tr height=22><td>a</td><td>&nbsp;</td></tr>
    <tr height=22><td>a</td><td>&nbsp;</td></tr>
    <tr height=22><td>a</td><td>&nbsp;</td></tr>
    <tr height=22><td>a</td><td>&nbsp;</td></tr>
    <tr height=22><td>a</td><td>&nbsp;</td></tr>
    <tr height=22><td>a</td><td>&nbsp;</td></tr>
    <tr height=22><td>a</td><td>&nbsp;</td></tr>
    <tr height=22><td>a</td><td>&nbsp;</td></tr>
    <tr height=22><td>a</td><td>&nbsp;</td></tr>
    <tr height=22><td>a</td><td>&nbsp;</td></tr></table>
    <br>
    </div>
    </td>
    </tr>
    </table>
      

  2.   

    不知楼主是不是要这一种:
    http://jkisjk.vip.sina.com/code/html/fixHeadTr.htm
    通常这样的情况,要的效果不是靠frame来实现,而是靠div来实现(用frame|iframe会破坏页面结构)
      

  3.   

    写onscroll事件
    有边的frame页面
    <body onscroll="parent.leftframe.document.body.scrollTop=document.body.scrollTop">