一个php页面.我想通过点击链接在本页面上的一个表格中打开网页要怎么办啊?
比如:点击 连接一就在 <td> </td> 中打开网页

解决方案 »

  1.   

    <table width="200" border="1">
      <tr>
        <td onclick="window.open('http://www.163.com')">&nbsp;</td>
      </tr>
    </table>
      

  2.   

    <!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=gb18030" />
    <title>Untitled Document</title>
    <script language="javascript" type="text/javascript">
    function clk(v) {
    document.getElementById("frm").src = v.value;
    }
    </script>
    </head><body>
    <a href="#" onclick="clk(this)" value="http://www.163.com">链接一</a> <a href="#" onclick="clk(this)" value="http://www.163.net">链接二</a>
    <table width="200" border="1">
      <tr>
        <td><iframe src="http://www.163.com" height="200" width="200" id="frm"></iframe></td>
      </tr>
    </table>
    </body>
    </html>
      

  3.   

    目前能想到的也只有2楼的用iframe的方式吧,要是无刷新的打开,或许需要用到ajax