子框架控制父框架中其他子框架
<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>
right<br />
<br />
<a href="javascript:changeUrl('http://www.sina.com.cn','http://www.163.com')">1111111111111</a></div>
</form>
</body>
</html>
<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>
right<br />
<br />
<a href="javascript:changeUrl('http://www.sina.com.cn','http://www.163.com')">1111111111111</a></div>
</form>
</body>
</html>