-----------------left.htm--------------------------------------<html>    
<head>
<title>左</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="../../../css/style.css">
</head>
<BODY>

<a href="right.htm" target="right">更新</a>
<!--用于记录当右边的框改变时,滚动条的变化值-->
<input type="hidden" name="txt">
</BODY>
</HTML>
----------------------right.htm --------------
<html>    
<head>
<title>右</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="../../../css/style.css">
</head>
<script>
//右边改变时,把滚动条的变化值写到左边的txt中.
window.onbeforeunload=function()
{
    top.frames["left"].document.all.txt.value=document.body.scrollTop;
}
window.onload=function()
//刷新时,自动scroll到滚动位置.
{
    if(top.frames["left"].document.all.txt.value!="")window.scroll(0,top.frames["left"].document.all.txt.value)
}
</script>
<BODY>
<img src="7.jpg"  border="0">
<a href="http://www.baidu.com">a</a>
<br>0<br>0<br>0<br>0<br>0<br>0<br>0<br>0<br>0<br>0<br>0<br>0<br>0<br>0<br>0<br>0<br>0<br>0<br>0<br>0<br>0<br>0<br>0<br>0<br>0<br>0<br>0<br>0<br>0<br>0<br>0<br>0<br>0<br>0<br>0<br>0<br>0<br>0<br>0<br>0<br>0<br>0<br>0<br>0<br>0<br>0<br>0<br>0<br>0<br>0<br>0<br>0<br>0<br>0<br>0<br>0
</BODY>
</HTML>