<!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년 전
써먹어야될곳이 생각났네요
감사합니다
감사합니다
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 930 | 19년 전 | 3542 | ||
| 929 |
|
19년 전 | 2703 | |
| 928 |
|
19년 전 | 3454 | |
| 927 |
|
19년 전 | 3442 | |
| 926 |
|
19년 전 | 3147 | |
| 925 | 19년 전 | 5432 | ||
| 924 |
|
19년 전 | 2167 | |
| 923 |
|
19년 전 | 2217 | |
| 922 |
|
19년 전 | 2312 | |
| 921 |
|
19년 전 | 3405 | |
| 920 | 19년 전 | 3704 | ||
| 919 |
|
19년 전 | 3746 | |
| 918 |
|
19년 전 | 2357 | |
| 917 |
|
19년 전 | 2394 | |
| 916 |
|
19년 전 | 2698 | |
| 915 | 19년 전 | 3042 | ||
| 914 | 19년 전 | 2457 | ||
| 913 | 19년 전 | 2625 | ||
| 912 | 19년 전 | 2456 | ||
| 911 | 19년 전 | 2212 | ||
| 910 | 19년 전 | 3243 | ||
| 909 | 19년 전 | 3298 | ||
| 908 | 19년 전 | 3032 | ||
| 907 |
|
19년 전 | 4872 | |
| 906 |
|
19년 전 | 2708 | |
| 905 |
|
19년 전 | 3316 | |
| 904 |
|
19년 전 | 3140 | |
| 903 |
|
19년 전 | 1988 | |
| 902 |
|
19년 전 | 3133 | |
| 901 |
|
19년 전 | 1869 | |
| 900 |
|
19년 전 | 2332 | |
| 899 |
|
19년 전 | 2401 | |
| 898 |
|
19년 전 | 3983 | |
| 897 |
|
19년 전 | 3184 | |
| 896 |
|
19년 전 | 3097 | |
| 895 |
|
19년 전 | 2535 | |
| 894 |
|
19년 전 | 2011 | |
| 893 |
|
19년 전 | 1643 | |
| 892 |
|
19년 전 | 2410 | |
| 891 |
|
19년 전 | 2328 | |
| 890 |
|
19년 전 | 1813 | |
| 889 |
|
19년 전 | 1810 | |
| 888 |
|
19년 전 | 2607 | |
| 887 |
|
19년 전 | 2580 | |
| 886 |
|
19년 전 | 1874 | |
| 885 |
|
19년 전 | 2108 | |
| 884 |
|
19년 전 | 3299 | |
| 883 |
|
19년 전 | 1951 | |
| 882 |
|
19년 전 | 2497 | |
| 881 |
|
19년 전 | 2578 | |
| 880 |
|
19년 전 | 2658 | |
| 879 |
|
19년 전 | 2936 | |
| 878 |
|
19년 전 | 2558 | |
| 877 |
|
19년 전 | 2983 | |
| 876 |
|
19년 전 | 2761 | |
| 875 |
|
19년 전 | 3522 | |
| 874 | 19년 전 | 1870 | ||
| 873 | 19년 전 | 2731 | ||
| 872 |
|
19년 전 | 2370 | |
| 871 |
|
19년 전 | 2015 | |
| 870 |
|
19년 전 | 2425 | |
| 869 |
|
19년 전 | 1871 | |
| 868 |
|
19년 전 | 5438 | |
| 867 |
|
19년 전 | 2258 | |
| 866 |
|
19년 전 | 4257 | |
| 865 |
|
19년 전 | 2300 | |
| 864 | 19년 전 | 1843 | ||
| 863 | 19년 전 | 2601 | ||
| 862 | 19년 전 | 2330 | ||
| 861 | 19년 전 | 2532 | ||
| 860 | 19년 전 | 2158 | ||
| 859 | 19년 전 | 3919 | ||
| 858 | 19년 전 | 3416 | ||
| 857 | 19년 전 | 2198 | ||
| 856 |
Power
|
19년 전 | 2106 | |
| 855 | 19년 전 | 1971 | ||
| 854 | 19년 전 | 1999 | ||
| 853 |
pearly
|
19년 전 | 4383 | |
| 852 |
pearly
|
19년 전 | 3352 | |
| 851 | 19년 전 | 2773 | ||
| 850 |
pearly
|
19년 전 | 3350 | |
| 849 |
pearly
|
19년 전 | 3010 | |
| 848 |
pearly
|
19년 전 | 2841 | |
| 847 | 19년 전 | 2354 | ||
| 846 |
|
19년 전 | 2167 | |
| 845 |
pearly
|
19년 전 | 2489 | |
| 844 | 19년 전 | 3096 | ||
| 843 | 19년 전 | 2129 | ||
| 842 |
pearly
|
19년 전 | 3121 | |
| 841 |
pearly
|
19년 전 | 3243 | |
| 840 | 19년 전 | 2924 | ||
| 839 |
|
19년 전 | 1939 | |
| 838 |
|
19년 전 | 1702 | |
| 837 |
|
19년 전 | 2322 | |
| 836 |
|
19년 전 | 2263 | |
| 835 |
|
19년 전 | 1641 | |
| 834 |
|
19년 전 | 1665 | |
| 833 |
|
19년 전 | 1569 | |
| 832 |
|
19년 전 | 2065 | |
| 831 |
|
19년 전 | 1616 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기