<!doctype html public "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title> Sample Script </title>
<meta name="Generator" content="EditPlus">
<!-- [1단계] 아래의 코드를 <head> 와 </head> 사이에 붙여 넣으세요 -->
<script type="text/javascript">
var iframeids=["myframe"] // iframe 에 사용할 ID 를 지정 해 주세요
var iframehide="yes"
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"
}
}
}
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;
else if (currentfr.Document && currentfr.Document.body.scrollHeight) //ie5+ syntax
currentfr.height = currentfr.Document.body.scrollHeight;
if (currentfr.addEventListener)
currentfr.addEventListener("load", readjustIframe, false)
else if (currentfr.attachEvent)
currentfr.attachEvent("onload", readjustIframe)
}
}
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
}
if (window.addEventListener)
window.addEventListener("load", resizeCaller, false)
else if (window.attachEvent)
window.attachEvent("onload", resizeCaller)
else
window.onload=resizeCaller
</script>
<!----------------- 여기까지 ----------------->
</head>
<body>
<!-- [2단계] 아래의 방법으로 iframe 태그를 넣으세요 -->
<iframe id="myframe" src="http://www.naver.com" scrolling="no" marginwidth="0" marginheight="0" frameborder="0" vspace="0" hspace="0" style="overflow:visible; width:100%; display:none"></iframe>
<!-- 여기에서 주의할 점은 스크립트의 맨 처음에 지정한 iframe 의 아이디를 반드시 사용해야 한다는 점입니다 --->
<!----------------- 여기까지 ----------------->
<p>
위의 페이지는 iframe 태그에 의해 불려진 페이지의 전체 입니다<br>
이처럼 이 스크립트를 사용하면 불려질 문서의 길이가 자동으로 체크되어 그 길이만큼 iframe 이 보여집니다
</body>
</html><div class='small'>[이 게시물은 관리자님에 의해 2011-10-31 17:16:08 PHP & HTML에서 이동 됨]</div>
<html>
<head>
<title> Sample Script </title>
<meta name="Generator" content="EditPlus">
<!-- [1단계] 아래의 코드를 <head> 와 </head> 사이에 붙여 넣으세요 -->
<script type="text/javascript">
var iframeids=["myframe"] // iframe 에 사용할 ID 를 지정 해 주세요
var iframehide="yes"
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"
}
}
}
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;
else if (currentfr.Document && currentfr.Document.body.scrollHeight) //ie5+ syntax
currentfr.height = currentfr.Document.body.scrollHeight;
if (currentfr.addEventListener)
currentfr.addEventListener("load", readjustIframe, false)
else if (currentfr.attachEvent)
currentfr.attachEvent("onload", readjustIframe)
}
}
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
}
if (window.addEventListener)
window.addEventListener("load", resizeCaller, false)
else if (window.attachEvent)
window.attachEvent("onload", resizeCaller)
else
window.onload=resizeCaller
</script>
<!----------------- 여기까지 ----------------->
</head>
<body>
<!-- [2단계] 아래의 방법으로 iframe 태그를 넣으세요 -->
<iframe id="myframe" src="http://www.naver.com" scrolling="no" marginwidth="0" marginheight="0" frameborder="0" vspace="0" hspace="0" style="overflow:visible; width:100%; display:none"></iframe>
<!-- 여기에서 주의할 점은 스크립트의 맨 처음에 지정한 iframe 의 아이디를 반드시 사용해야 한다는 점입니다 --->
<!----------------- 여기까지 ----------------->
<p>
위의 페이지는 iframe 태그에 의해 불려진 페이지의 전체 입니다<br>
이처럼 이 스크립트를 사용하면 불려질 문서의 길이가 자동으로 체크되어 그 길이만큼 iframe 이 보여집니다
</body>
</html><div class='small'>[이 게시물은 관리자님에 의해 2011-10-31 17:16:08 PHP & HTML에서 이동 됨]</div>
댓글 1개
20년 전
써먹어야될곳이 생각났네요
감사합니다
감사합니다
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 8130 | 9년 전 | 530 | ||
| 8129 |
|
9년 전 | 659 | |
| 8128 | 9년 전 | 523 | ||
| 8127 |
|
9년 전 | 580 | |
| 8126 | 9년 전 | 513 | ||
| 8125 | 9년 전 | 774 | ||
| 8124 |
|
9년 전 | 530 | |
| 8123 | 9년 전 | 513 | ||
| 8122 | 9년 전 | 440 | ||
| 8121 | 9년 전 | 554 | ||
| 8120 | 9년 전 | 475 | ||
| 8119 | 9년 전 | 563 | ||
| 8118 |
|
9년 전 | 639 | |
| 8117 |
|
9년 전 | 412 | |
| 8116 |
PASKRAN
|
9년 전 | 472 | |
| 8115 | 9년 전 | 462 | ||
| 8114 |
kiplayer
|
9년 전 | 602 | |
| 8113 | 9년 전 | 460 | ||
| 8112 |
|
9년 전 | 566 | |
| 8111 | 9년 전 | 413 | ||
| 8110 | 9년 전 | 450 | ||
| 8109 | 9년 전 | 383 | ||
| 8108 |
|
9년 전 | 555 | |
| 8107 |
|
9년 전 | 447 | |
| 8106 |
|
9년 전 | 448 | |
| 8105 | 9년 전 | 481 | ||
| 8104 |
|
9년 전 | 445 | |
| 8103 |
|
9년 전 | 441 | |
| 8102 |
|
9년 전 | 415 | |
| 8101 |
snshero
|
9년 전 | 800 | |
| 8100 | 9년 전 | 849 | ||
| 8099 | 9년 전 | 821 | ||
| 8098 | 9년 전 | 722 | ||
| 8097 | 9년 전 | 527 | ||
| 8096 | 9년 전 | 727 | ||
| 8095 | 9년 전 | 855 | ||
| 8094 | 9년 전 | 525 | ||
| 8093 | 9년 전 | 810 | ||
| 8092 | 9년 전 | 764 | ||
| 8091 | 9년 전 | 1150 | ||
| 8090 | 9년 전 | 778 | ||
| 8089 | 9년 전 | 986 | ||
| 8088 | 9년 전 | 655 | ||
| 8087 | 9년 전 | 779 | ||
| 8086 | 9년 전 | 529 | ||
| 8085 | 9년 전 | 495 | ||
| 8084 | 9년 전 | 615 | ||
| 8083 | 9년 전 | 584 | ||
| 8082 | 9년 전 | 770 | ||
| 8081 | 9년 전 | 479 | ||
| 8080 | 9년 전 | 581 | ||
| 8079 | 9년 전 | 539 | ||
| 8078 | 9년 전 | 457 | ||
| 8077 | 9년 전 | 543 | ||
| 8076 | 9년 전 | 417 | ||
| 8075 | 9년 전 | 451 | ||
| 8074 | 9년 전 | 410 | ||
| 8073 | 9년 전 | 465 | ||
| 8072 | 9년 전 | 460 | ||
| 8071 |
o1o111
|
9년 전 | 908 | |
| 8070 | 9년 전 | 414 | ||
| 8069 | 9년 전 | 350 | ||
| 8068 | 9년 전 | 604 | ||
| 8067 | 9년 전 | 403 | ||
| 8066 | 9년 전 | 432 | ||
| 8065 | 9년 전 | 396 | ||
| 8064 | 9년 전 | 381 | ||
| 8063 | 9년 전 | 348 | ||
| 8062 | 9년 전 | 315 | ||
| 8061 | 9년 전 | 358 | ||
| 8060 | 9년 전 | 400 | ||
| 8059 | 9년 전 | 337 | ||
| 8058 | 9년 전 | 268 | ||
| 8057 | 9년 전 | 398 | ||
| 8056 | 9년 전 | 317 | ||
| 8055 | 9년 전 | 362 | ||
| 8054 | 9년 전 | 373 | ||
| 8053 | 9년 전 | 422 | ||
| 8052 | 9년 전 | 299 | ||
| 8051 | 9년 전 | 345 | ||
| 8050 | 9년 전 | 398 | ||
| 8049 | 9년 전 | 334 | ||
| 8048 | 9년 전 | 443 | ||
| 8047 | 9년 전 | 376 | ||
| 8046 | 9년 전 | 321 | ||
| 8045 | 9년 전 | 272 | ||
| 8044 | 9년 전 | 355 | ||
| 8043 | 9년 전 | 305 | ||
| 8042 | 9년 전 | 305 | ||
| 8041 | 9년 전 | 364 | ||
| 8040 | 9년 전 | 286 | ||
| 8039 | 9년 전 | 327 | ||
| 8038 | 9년 전 | 278 | ||
| 8037 | 9년 전 | 415 | ||
| 8036 | 9년 전 | 500 | ||
| 8035 | 9년 전 | 442 | ||
| 8034 | 9년 전 | 399 | ||
| 8033 | 9년 전 | 359 | ||
| 8032 | 9년 전 | 456 | ||
| 8031 | 9년 전 | 362 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기