제가 A라는 게시판 위에
B라는 게시판 리스트 페이지를 인쿠르드 시키려했지만 계속실패를하더라구요
그래서 결국 iframe으로 불러왔구요..ㅠㅠ
이 방법이 아닌거같습니다..
iframe으로하면 height값을 지정한대로 정해지니까 게시판 내용이 길어지거나 짧아지면..;;
이거 될거같으면서도 안되네요..
어떤식으로 해야되는지 도움좀주시면감사하겠습니다..ㅠㅠ
B라는 게시판 리스트 페이지를 인쿠르드 시키려했지만 계속실패를하더라구요
그래서 결국 iframe으로 불러왔구요..ㅠㅠ
이 방법이 아닌거같습니다..
iframe으로하면 height값을 지정한대로 정해지니까 게시판 내용이 길어지거나 짧아지면..;;
이거 될거같으면서도 안되네요..
어떤식으로 해야되는지 도움좀주시면감사하겠습니다..ㅠㅠ
댓글 3개
유동적으로 높이 조절하는 아이프레임 소스입니다.
<iframe id="embeded-content" width="100%" src="원하는 게시판" marginwidth="0" marginheight="0" frameborder="0" ></iframe>
<script type="text/javascript">
function resize_frame(id) {
var frm = document.getElementById("embeded-content");
function resize() {
frm.style.height = "auto"; // set default height for Opera
contentHeight = frm.contentWindow.document.body.scrollHeight;
frm.style.height = contentHeight + 23 + "px"; // 23px for IE7
}
if (frm.addEventListener) {
frm.addEventListener('load', resize, false);
} else {
frm.attachEvent('onload', resize);
}
}
resize_frame('embeded-content');
</script>
<iframe id="embeded-content" width="100%" src="원하는 게시판" marginwidth="0" marginheight="0" frameborder="0" ></iframe>
<script type="text/javascript">
function resize_frame(id) {
var frm = document.getElementById("embeded-content");
function resize() {
frm.style.height = "auto"; // set default height for Opera
contentHeight = frm.contentWindow.document.body.scrollHeight;
frm.style.height = contentHeight + 23 + "px"; // 23px for IE7
}
if (frm.addEventListener) {
frm.addEventListener('load', resize, false);
} else {
frm.attachEvent('onload', resize);
}
}
resize_frame('embeded-content');
</script>
게시글 목록
| 번호 | 제목 |
|---|---|
| 284508 | |
| 284499 | |
| 284492 | |
| 284490 | |
| 284484 | |
| 284481 | |
| 284478 | |
| 284476 | |
| 284474 | |
| 284472 | |
| 284470 | |
| 284458 | |
| 284457 | |
| 284454 | |
| 284453 | |
| 284447 | |
| 284446 | |
| 284444 | |
| 284441 | |
| 284440 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기