<!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년 전
써먹어야될곳이 생각났네요
감사합니다
감사합니다
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 830 |
|
19년 전 | 2180 | |
| 829 |
|
19년 전 | 1912 | |
| 828 |
|
19년 전 | 1804 | |
| 827 |
|
19년 전 | 1652 | |
| 826 |
|
19년 전 | 1845 | |
| 825 |
|
19년 전 | 1886 | |
| 824 |
|
19년 전 | 1942 | |
| 823 |
|
19년 전 | 2687 | |
| 822 |
|
19년 전 | 5315 | |
| 821 |
|
19년 전 | 1719 | |
| 820 |
|
19년 전 | 1572 | |
| 819 |
|
19년 전 | 1433 | |
| 818 |
|
19년 전 | 1589 | |
| 817 |
|
19년 전 | 1519 | |
| 816 |
|
19년 전 | 1442 | |
| 815 |
|
19년 전 | 1455 | |
| 814 |
|
19년 전 | 1377 | |
| 813 |
|
19년 전 | 1439 | |
| 812 | 19년 전 | 2814 | ||
| 811 |
pearly
|
19년 전 | 3830 | |
| 810 |
pearly
|
19년 전 | 5205 | |
| 809 |
|
19년 전 | 1374 | |
| 808 |
pearly
|
19년 전 | 4537 | |
| 807 | 19년 전 | 2975 | ||
| 806 |
|
19년 전 | 1493 | |
| 805 |
|
19년 전 | 2687 | |
| 804 |
|
19년 전 | 3615 | |
| 803 |
|
19년 전 | 1797 | |
| 802 |
|
19년 전 | 3788 | |
| 801 |
|
19년 전 | 1877 | |
| 800 | 19년 전 | 3770 | ||
| 799 | 19년 전 | 3430 | ||
| 798 | 19년 전 | 4204 | ||
| 797 | 19년 전 | 4055 | ||
| 796 |
|
19년 전 | 1891 | |
| 795 |
|
19년 전 | 1843 | |
| 794 | 19년 전 | 4272 | ||
| 793 | 19년 전 | 2667 | ||
| 792 | 19년 전 | 2542 | ||
| 791 | 19년 전 | 2392 | ||
| 790 | 19년 전 | 1969 | ||
| 789 | 19년 전 | 2586 | ||
| 788 | 19년 전 | 2201 | ||
| 787 | 19년 전 | 1843 | ||
| 786 | 19년 전 | 1971 | ||
| 785 | 19년 전 | 1441 | ||
| 784 |
|
19년 전 | 1692 | |
| 783 | 19년 전 | 2833 | ||
| 782 |
|
19년 전 | 1949 | |
| 781 | 19년 전 | 3242 | ||
| 780 | 19년 전 | 3149 | ||
| 779 |
|
19년 전 | 2241 | |
| 778 |
|
19년 전 | 1792 | |
| 777 | 19년 전 | 2833 | ||
| 776 | 19년 전 | 2897 | ||
| 775 | 19년 전 | 4014 | ||
| 774 |
|
19년 전 | 1972 | |
| 773 | 19년 전 | 2619 | ||
| 772 | 19년 전 | 2336 | ||
| 771 | 19년 전 | 3467 | ||
| 770 |
|
19년 전 | 1428 | |
| 769 | 19년 전 | 1490 | ||
| 768 | 19년 전 | 1767 | ||
| 767 | 19년 전 | 2202 | ||
| 766 | 19년 전 | 1832 | ||
| 765 | 19년 전 | 1693 | ||
| 764 |
|
19년 전 | 2103 | |
| 763 |
|
19년 전 | 2213 | |
| 762 |
|
19년 전 | 4963 | |
| 761 | 19년 전 | 2326 | ||
| 760 |
|
19년 전 | 3191 | |
| 759 | 19년 전 | 2639 | ||
| 758 |
|
19년 전 | 2405 | |
| 757 | 19년 전 | 4697 | ||
| 756 | 19년 전 | 2560 | ||
| 755 |
|
19년 전 | 2411 | |
| 754 |
|
19년 전 | 1948 | |
| 753 |
|
19년 전 | 1728 | |
| 752 |
pearly
|
19년 전 | 3366 | |
| 751 | 19년 전 | 2335 | ||
| 750 |
|
19년 전 | 6156 | |
| 749 | 19년 전 | 2022 | ||
| 748 |
|
19년 전 | 1898 | |
| 747 |
|
19년 전 | 2704 | |
| 746 |
|
19년 전 | 1809 | |
| 745 | 19년 전 | 2279 | ||
| 744 | 19년 전 | 2108 | ||
| 743 |
|
19년 전 | 3561 | |
| 742 | 19년 전 | 2578 | ||
| 741 | 19년 전 | 2742 | ||
| 740 |
|
19년 전 | 4362 | |
| 739 | 19년 전 | 3546 | ||
| 738 |
|
19년 전 | 2304 | |
| 737 | 19년 전 | 4301 | ||
| 736 | 19년 전 | 3265 | ||
| 735 |
홀로남은자
|
19년 전 | 4129 | |
| 734 |
홀로남은자
|
19년 전 | 2020 | |
| 733 |
홀로남은자
|
19년 전 | 2227 | |
| 732 | 19년 전 | 2139 | ||
| 731 | 19년 전 | 3351 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기