1번 파일
<html>
<head>
<title>Untitled</title>
</head>
<body>
<table width="800" height="700" boder="0" bgcolor="#008000">
<tr>
<td> </td>
</tr>
</table>
</body>
</html>
이런식으루 아이프레임으루 쓸 파일을 하나 만들구
2번 파일 불러들이는 파일은
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=euc-kr">
<script language="javascript">
function Resize_Frame(name) {
try {
var oBody = document.frames(name).document.body;
var oFrame = document.all(name);
tempWidth = oBody.offsetWidth-oBody.clientWidth;
oFrame.style.width = oBody.scrollWidth + tempWidth;
tempHeight = oBody.offsetHeight - oBody.clientHeight;
oFrame.style.height = oBody.scrollHeight + tempHeight;
if (oFrame.style.height == "0px" || oFrame.style.width == "0px") {
oFrame.style.width = "570px";
oFrame.style.height = "500px";
window.status = 'iframe resizing fail.';
} else {
window.status = '';
}
} catch(e) {
//window.status = 'Error: ' + e.number + '; ' + e.description;
window.status = 'No-IFrame';
}
}
</script>
</head>
<body topmargin="0" leftmargin="0" onLoad="parent.Resize_Frame('idBoard');">
<iframe width=100 height=100 valign=top frameborder=0 src="test.html" name=ifBoard id=idBoard></iframe>
</body>
</html>
이렇게
-끝-