开源Asp.Net论坛

阿强.Net

关注研究:设计模式,.Net Framework底层框架,Asp.net,WinForm开发,开源框架;

导航

子框架控制父框架中其他子框架

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>无标题页</title>
    <script language="javascript">
   function changeUrl(u1,u2)
   {
       parent.window.frames["left"].location.href=u1;
       parent.window.frames["right"].location.href=u2;
   }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; right<br />
        <br />
        &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; <a href="javascript:changeUrl('http://www.sina.com.cn','http://www.163.com')">1111111111111</a></div>
    </form>
</body>
</html>

posted on 2008-04-24 14:48  阿强.Net  阅读(1015)  评论(0编辑  收藏  举报