62,269
社区成员
发帖
与我相关
我的任务
分享<!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>
<title>Untitled Page</title>
</head>
<body style="margin:0px;">
<table border="0" cellpadding="0" cellspacing="0" style="width: 100%; height: 800px;">
<tr>
<td style="width: 50%" valign="top">
<iframe src="left.htm" width="100%" height="800px"></iframe>
</td>
<td style="width: 50%" valign="top">
<iframe id="ifright" src="" width="100%" height="800px"></iframe>
</td>
</tr>
</table>
</body>
</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>
<title>Untitled Page</title>
</head>
<body>
<input type="button" value="go to a.aspx" onclick="goto('a.aspx');" /><p></p>
<input type="button" value="go to b.aspx" onclick="goto('b.aspx');" /><p></p>
<input type="button" value="go to c.aspx" onclick="goto('c.aspx');" /><p></p>
</body>
</html>
<script type="text/javascript">
function goto(url)
{
window.parent.document.getElementById('ifright').src=url;
}
</script>h.aspx:
<a href='a.aspx' target='mainFrame'>aaa</a><br>
<a href='b.aspx' target='mainFrame'>bbb</a><br>
<a href='c.aspx' target='mainFrame'>ccc</a><br><html>
<head runat="server">
<title>无标题页</title>
</head>
<frameset rows="*" cols="220,*" framespacing="0" frameborder="no" border="0">
<frame src="h.aspx" name="leftFrame" frameborder="yes" marginwidth="0"
marginheight="0" scrolling="yes">
<frame src="" name="mainFrame" frameborder="yes" marginwidth="0" marginheight="0">
</frameset>
</html>