<!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년 전
써먹어야될곳이 생각났네요
감사합니다
감사합니다
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 7930 | 9년 전 | 475 | ||
| 7929 | 9년 전 | 408 | ||
| 7928 | 9년 전 | 486 | ||
| 7927 | 9년 전 | 387 | ||
| 7926 | 9년 전 | 695 | ||
| 7925 | 9년 전 | 421 | ||
| 7924 | 9년 전 | 402 | ||
| 7923 | 9년 전 | 390 | ||
| 7922 | 9년 전 | 419 | ||
| 7921 | 9년 전 | 435 | ||
| 7920 | 9년 전 | 344 | ||
| 7919 | 9년 전 | 356 | ||
| 7918 | 9년 전 | 509 | ||
| 7917 | 9년 전 | 363 | ||
| 7916 | 9년 전 | 451 | ||
| 7915 | 9년 전 | 464 | ||
| 7914 | 9년 전 | 474 | ||
| 7913 | 9년 전 | 651 | ||
| 7912 | 9년 전 | 484 | ||
| 7911 | 9년 전 | 407 | ||
| 7910 | 9년 전 | 458 | ||
| 7909 | 9년 전 | 573 | ||
| 7908 | 9년 전 | 511 | ||
| 7907 | 9년 전 | 444 | ||
| 7906 | 9년 전 | 464 | ||
| 7905 | 9년 전 | 433 | ||
| 7904 | 9년 전 | 419 | ||
| 7903 | 9년 전 | 431 | ||
| 7902 | 9년 전 | 605 | ||
| 7901 |
|
9년 전 | 771 | |
| 7900 | 9년 전 | 666 | ||
| 7899 | 9년 전 | 449 | ||
| 7898 | 9년 전 | 447 | ||
| 7897 | 9년 전 | 406 | ||
| 7896 | 9년 전 | 420 | ||
| 7895 | 9년 전 | 539 | ||
| 7894 | 9년 전 | 446 | ||
| 7893 | 9년 전 | 425 | ||
| 7892 | 9년 전 | 460 | ||
| 7891 | 9년 전 | 816 | ||
| 7890 | 9년 전 | 1235 | ||
| 7889 | 9년 전 | 771 | ||
| 7888 |
limsy1987
|
9년 전 | 581 | |
| 7887 | 9년 전 | 635 | ||
| 7886 | 9년 전 | 519 | ||
| 7885 | 9년 전 | 491 | ||
| 7884 | 9년 전 | 484 | ||
| 7883 | 9년 전 | 490 | ||
| 7882 | 9년 전 | 549 | ||
| 7881 | 9년 전 | 524 | ||
| 7880 | 9년 전 | 635 | ||
| 7879 | 9년 전 | 526 | ||
| 7878 | 9년 전 | 1299 | ||
| 7877 | 9년 전 | 822 | ||
| 7876 | 9년 전 | 567 | ||
| 7875 | 9년 전 | 638 | ||
| 7874 |
|
9년 전 | 834 | |
| 7873 | 9년 전 | 560 | ||
| 7872 | 9년 전 | 729 | ||
| 7871 | 9년 전 | 544 | ||
| 7870 | 9년 전 | 664 | ||
| 7869 | 9년 전 | 479 | ||
| 7868 | 9년 전 | 521 | ||
| 7867 | 10년 전 | 529 | ||
| 7866 | 10년 전 | 584 | ||
| 7865 | 10년 전 | 529 | ||
| 7864 | 10년 전 | 583 | ||
| 7863 | 10년 전 | 575 | ||
| 7862 | 10년 전 | 545 | ||
| 7861 | 10년 전 | 709 | ||
| 7860 | 10년 전 | 689 | ||
| 7859 | 10년 전 | 459 | ||
| 7858 | 10년 전 | 775 | ||
| 7857 | 10년 전 | 1159 | ||
| 7856 | 10년 전 | 584 | ||
| 7855 | 10년 전 | 824 | ||
| 7854 | 10년 전 | 757 | ||
| 7853 | 10년 전 | 658 | ||
| 7852 | 10년 전 | 580 | ||
| 7851 | 10년 전 | 585 | ||
| 7850 | 10년 전 | 655 | ||
| 7849 | 10년 전 | 420 | ||
| 7848 | 10년 전 | 486 | ||
| 7847 | 10년 전 | 731 | ||
| 7846 | 10년 전 | 514 | ||
| 7845 | 10년 전 | 491 | ||
| 7844 | 10년 전 | 454 | ||
| 7843 | 10년 전 | 490 | ||
| 7842 | 10년 전 | 472 | ||
| 7841 | 10년 전 | 442 | ||
| 7840 | 10년 전 | 461 | ||
| 7839 | 10년 전 | 514 | ||
| 7838 | 10년 전 | 570 | ||
| 7837 | 10년 전 | 399 | ||
| 7836 | 10년 전 | 451 | ||
| 7835 | 10년 전 | 532 | ||
| 7834 |
|
10년 전 | 1230 | |
| 7833 | 10년 전 | 497 | ||
| 7832 | 10년 전 | 472 | ||
| 7831 | 10년 전 | 637 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기