1. 框架页代码
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
</head><frameset rows="*,*"" frameborder="NO" border="0" framespacing="0">
  <frame src="a.html" name="topFrame" id="topFrame" title="topFrame" />
  <frame src="b.html" name="mainFrame" id="mainFrame" title="mainFrame" />
</frameset>
<noframes><body>
</body>
</noframes></html>2. a.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
</head><body>
<table>
<tr  id="tr1"  class="tr_s"    oncontextmenu="cm.myshow(this)"  onMouseOver="this.className='tr_o'"  onMouseOut="this.className='tr_s'"  
onClick="parent.mainFrame.document.getElementById('tt').innerHTML = this.innerHTML;">  
   <r_config  name="新建"  value="tab_new.htm">  
   <r_config  name="修改"  value="tab_new.htm">  
   <r_config  name="删除"  value="">  
   <r_config  name="其他"  value="">  
   <about_config  name="1资源"  value="tab_1.htm">  
   <about_config  name="1图表"  value="tab_2.htm">  
   <about_config  name="1文档"  value="tab_3.htm">  
       <td  ><input  type="checkbox"  name="checkbox"  value="checkbox"></td>  
       <td  id="xm"  name="xm"  value="张三">张三</td>  
       <td  id="nl"  name="nl"  value="24">24</td>  
       <td  id="csrq"  name="csrq"  value="19840101">19840101</td>  
       <td  id="bm"  name="bm"  value="研发二部">研发二部</td>  
       <td  id="gl"  name="gl"  value="5">5</td>  
       <td  id="hf"  name="hf"  value="未婚">未婚</td>  
   </tr>  
</table>
</body>
</html>3. b.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
</head><body>
<div id="tt"></div>
</body>
</html>