用JS实现:
<html>
<head>
<title>我是阿猫^_^</title>
</head>
<frameset framespacing="0" border="false" cols="180,*" frameborder="0">
<frame name="left" scrolling="yes" marginwidth="0" marginheight="0" src="a.html" />
<frame name="right" scrolling="yes" src="b.html" />
</frameset>
<noframes>
</noframes>
</html>在左边a.html上加个按钮<input type="button" onclick="javascript:top.window.right.location.reload();" />注意:top.window.right里的right是右边frame的name
<html>
<head>
<title>我是阿猫^_^</title>
</head>
<frameset framespacing="0" border="false" cols="180,*" frameborder="0">
<frame name="left" scrolling="yes" marginwidth="0" marginheight="0" src="a.html" />
<frame name="right" scrolling="yes" src="b.html" />
</frameset>
<noframes>
</noframes>
</html>在左边a.html上加个按钮<input type="button" onclick="javascript:top.window.right.location.reload();" />注意:top.window.right里的right是右边frame的name
<?php
echo "<input type=\"button\" onclick=\"javascript:top.window.right.location.reload();\" />"
?>
你可以试着:(假如你有A.PHP,B.PHP,C.PHP)
<?php
$page = isset($_GET['page'])?$_GET['page']:'A';
?>
<!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 width="60%" border="1" cellspacing="1" cellpadding="1">
<tr>
<td width="19%"><a href="<?=$_SERVER['PHP_SELF']?>?page=A">A.PHP</a></td>
<td width="81%" rowspan="4"> </td>
</tr>
<tr>
<td><a href="<?=$_SERVER['PHP_SELF']?>?page=B">B.PHP</a></td>
</tr>
<tr>
<td><a href="<?=$_SERVER['PHP_SELF']?>?page=C">C.PHP</a></td>
</tr>
<tr>
<td><? require_once("./".$page.'.php');//同目录下?></td>
</tr>
</table>
</body>
</html>