html에서 게시판 불러오는방법은?

게시판 불러오는 방법점 알려주세요..
방법을 까묵었네요 ㅠㅠ
|

댓글 3개

iframe 과 head.php tail.php 로 연결하는 방법 두가지가 있네요.
아이프레임으로 불러왔떠니 tail.php가 너무 멀리서 나와요...
<html>
<head>
<title> 프레임 사이즈 자동조절 </title>
<script type="text/javascript">
/*******************Iframe 내용만큼 자동 Resize START **********************/
var iframeids=["htmlframe"]; //iframe 사이즈 자동조절
var iframehide="yes" ;

//실행순서 : 1
function resizeCaller() {
var dyniframe=new Array()
for (i=0; i<iframeids.length; i++){
if (document.getElementById)
resizeIframe(iframeids[i])
if ((document.all || document.getElementById) && iframehide=="no"){
var tempobj=document.all? document.all[iframeids[i]] : document.getElementById(iframeids[i])
tempobj.style.display="block"
}
}
}
//실행순서 : 2
function resizeIframe(frameid){
var currentfr=document.getElementById(frameid)
if (currentfr && !window.opera){
currentfr.style.display="block"
if (currentfr.contentDocument && currentfr.contentDocument.body.offsetHeight) //ns6 syntax
currentfr.height = currentfr.contentDocument.body.offsetHeight+10;
else if (currentfr.Document && currentfr.Document.body.scrollHeight) //ie5+ syntax
currentfr.height = currentfr.Document.body.scrollHeight+10;
if (currentfr.addEventListener)
currentfr.addEventListener("load", readjustIframe, false)
else if (currentfr.attachEvent)
currentfr.attachEvent("onload", readjustIframe)
}
//작업종료후 최종 윈도우 Onload
loadWindowResize();
}
//실행순서 : ?
function readjustIframe(loadevt) {
var crossevt=(window.event)? event : loadevt
var iframeroot=(crossevt.currentTarget)? crossevt.currentTarget : crossevt.srcElement
if (iframeroot)
resizeIframe(iframeroot.id);
}
//실행순서 : ?
function loadintoIframe(iframeid, url){
if (document.getElementById)
document.getElementById(iframeid).src=url
}
//실행순서 : 5
function loadWindowResize(){
if (window.addEventListener)
window.addEventListener("load", resizeCaller, false)
else if (window.attachEvent)
window.attachEvent("onload", resizeCaller)
else
window.onload=resizeCaller
}

/*******************Iframe 내용만큼 자동 Resize END **********************/
</script>
</head>

<body>
<iframe name='htmlframe' id='htmlframe' src='http://www.naver.com' frameborder='0' width='100%' height='100%' scrolling='No' title='네이버' allowtransparency='true'></iframe>
</body>
</html>
댓글을 작성하시려면 로그인이 필요합니다.

그누4 질문답변

그누보드4 관련 질문은 QA 로 이전됩니다. QA 그누보드4 바로가기 기존 게시물은 열람만 가능합니다.

+
제목 글쓴이 날짜 조회
15년 전 조회 872
15년 전 조회 765
15년 전 조회 963
15년 전 조회 1,788
15년 전 조회 956
15년 전 조회 1,019
15년 전 조회 771
15년 전 조회 2,318
15년 전 조회 885
15년 전 조회 1,568
15년 전 조회 846
15년 전 조회 1,068
15년 전 조회 1,089
15년 전 조회 1,556
15년 전 조회 1,550
15년 전 조회 1,558
15년 전 조회 1,664
15년 전 조회 1,580
15년 전 조회 1,793
15년 전 조회 2,539