<!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년 전
써먹어야될곳이 생각났네요
감사합니다
감사합니다
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 7830 | 9년 전 | 442 | ||
| 7829 |
|
9년 전 | 625 | |
| 7828 | 10년 전 | 556 | ||
| 7827 | 10년 전 | 452 | ||
| 7826 | 10년 전 | 456 | ||
| 7825 | 10년 전 | 497 | ||
| 7824 | 10년 전 | 459 | ||
| 7823 | 10년 전 | 405 | ||
| 7822 | 10년 전 | 378 | ||
| 7821 | 10년 전 | 325 | ||
| 7820 | 10년 전 | 359 | ||
| 7819 |
|
10년 전 | 758 | |
| 7818 | 10년 전 | 406 | ||
| 7817 | 10년 전 | 546 | ||
| 7816 | 10년 전 | 424 | ||
| 7815 | 10년 전 | 622 | ||
| 7814 | 10년 전 | 453 | ||
| 7813 | 10년 전 | 404 | ||
| 7812 | 10년 전 | 415 | ||
| 7811 | 10년 전 | 404 | ||
| 7810 | 10년 전 | 585 | ||
| 7809 | 10년 전 | 518 | ||
| 7808 | 10년 전 | 399 | ||
| 7807 | 10년 전 | 426 | ||
| 7806 |
프로그래머7
|
10년 전 | 1349 | |
| 7805 | 10년 전 | 1292 | ||
| 7804 |
zahir1312
|
10년 전 | 790 | |
| 7803 |
|
10년 전 | 1388 | |
| 7802 | 10년 전 | 479 | ||
| 7801 | 10년 전 | 874 | ||
| 7800 | 10년 전 | 1093 | ||
| 7799 | 10년 전 | 573 | ||
| 7798 | 10년 전 | 529 | ||
| 7797 | 10년 전 | 533 | ||
| 7796 | 10년 전 | 374 | ||
| 7795 | 10년 전 | 526 | ||
| 7794 | 10년 전 | 574 | ||
| 7793 | 10년 전 | 1072 | ||
| 7792 | 10년 전 | 494 | ||
| 7791 | 10년 전 | 576 | ||
| 7790 | 10년 전 | 523 | ||
| 7789 |
fbastore
|
10년 전 | 1464 | |
| 7788 | 10년 전 | 566 | ||
| 7787 | 10년 전 | 421 | ||
| 7786 | 10년 전 | 615 | ||
| 7785 | 10년 전 | 606 | ||
| 7784 | 10년 전 | 660 | ||
| 7783 | 10년 전 | 470 | ||
| 7782 | 10년 전 | 509 | ||
| 7781 | 10년 전 | 913 | ||
| 7780 | 10년 전 | 836 | ||
| 7779 | 10년 전 | 782 | ||
| 7778 | 10년 전 | 374 | ||
| 7777 | 10년 전 | 482 | ||
| 7776 | 10년 전 | 472 | ||
| 7775 | 10년 전 | 419 | ||
| 7774 | 10년 전 | 638 | ||
| 7773 | 10년 전 | 395 | ||
| 7772 | 10년 전 | 753 | ||
| 7771 | 10년 전 | 407 | ||
| 7770 | 10년 전 | 657 | ||
| 7769 | 10년 전 | 407 | ||
| 7768 | 10년 전 | 628 | ||
| 7767 | 10년 전 | 1189 | ||
| 7766 | 10년 전 | 508 | ||
| 7765 | 10년 전 | 553 | ||
| 7764 |
잘살아보자
|
10년 전 | 416 | |
| 7763 |
|
10년 전 | 1478 | |
| 7762 |
Tosea
|
10년 전 | 1074 | |
| 7761 | 10년 전 | 667 | ||
| 7760 |
잘살아보자
|
10년 전 | 704 | |
| 7759 |
잘살아보자
|
10년 전 | 540 | |
| 7758 |
잘살아보자
|
10년 전 | 614 | |
| 7757 | 10년 전 | 1254 | ||
| 7756 |
ITBANK
|
10년 전 | 1269 | |
| 7755 | 10년 전 | 1937 | ||
| 7754 | 10년 전 | 1072 | ||
| 7753 | 10년 전 | 898 | ||
| 7752 | 10년 전 | 1410 | ||
| 7751 |
잘살아보자
|
10년 전 | 554 | |
| 7750 |
잘살아보자
|
10년 전 | 491 | |
| 7749 |
잘살아보자
|
10년 전 | 504 | |
| 7748 |
잘살아보자
|
10년 전 | 520 | |
| 7747 |
잘살아보자
|
10년 전 | 605 | |
| 7746 |
잘살아보자
|
10년 전 | 689 | |
| 7745 |
잘살아보자
|
10년 전 | 931 | |
| 7744 |
잘살아보자
|
10년 전 | 431 | |
| 7743 | 10년 전 | 959 | ||
| 7742 |
starbros
|
10년 전 | 853 | |
| 7741 |
잘살아보자
|
10년 전 | 684 | |
| 7740 |
잘살아보자
|
10년 전 | 562 | |
| 7739 |
잘살아보자
|
10년 전 | 476 | |
| 7738 |
잘살아보자
|
10년 전 | 550 | |
| 7737 |
잘살아보자
|
10년 전 | 522 | |
| 7736 |
잘살아보자
|
10년 전 | 541 | |
| 7735 |
잘살아보자
|
10년 전 | 870 | |
| 7734 |
잘살아보자
|
10년 전 | 439 | |
| 7733 |
잘살아보자
|
10년 전 | 555 | |
| 7732 |
잘살아보자
|
10년 전 | 714 | |
| 7731 |
잘살아보자
|
10년 전 | 631 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기