<html>
<head>
<title>框架</title>
<meta http-equiv="content-type" content="text/html;charset=utf-8">
</head>
<!-- 将浏览器窗口水平分两部分,第一部分占据整个窗口的20%大小 -->
<frameset rows="20%,*">
<frame src="tip.htm" name="tip">
<frameset cols="30%,*">
<frame src="left.htm" name="left">
<frame src="right_frame.htm" name="right">
</frameset>
</frameset>
</html>
<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=utf-8">
</head>
<frameset rows="*,*" rols="50%,50%">
<frame name="right_top">
<frame name="right_low">
</frameset>
</html>
<html>
<head>
<title>tip</title>
<meta http-equiv="content-type" content="text/html;charset=utf-8">
<script type="text/javascript" language="javascript">
<!--
function update_right_low() {
window.parent.right.right_low.document.write("update from tip frame");
}
-->
</script>
</head>
<body>
<form name="TipForm">
<input type="button" onClick="update_right_low()" value="update_Right_Low_Frame">
</form>
</body>
</html>
<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=utf-8">
</head>
<script type="text/javascript" language="javascript">
<!--
function change_tip_frame() {
window.parent.tip.document.write("hello tip frame");
}
function change_rightTop_frame() {
window.top.right.right_top.document.write("update from left frame");
}
-->
</script>
<body>
<form name="myForm">
<input type="button" onclick="change_tip_frame()" value="update tip frame">
<input type="button" onclick="change_rightTop_frame()" value="update right_top frame">
</form>
</body>
</html>
欢迎光临 曲径通幽论坛 (http://www.groad.net/bbs/) | Powered by Discuz! X3.2 |