<!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년 전 | 417 | ||
| 7929 | 9년 전 | 338 | ||
| 7928 | 9년 전 | 432 | ||
| 7927 | 9년 전 | 345 | ||
| 7926 | 9년 전 | 672 | ||
| 7925 | 9년 전 | 365 | ||
| 7924 | 9년 전 | 343 | ||
| 7923 | 9년 전 | 352 | ||
| 7922 | 9년 전 | 389 | ||
| 7921 | 9년 전 | 405 | ||
| 7920 | 9년 전 | 324 | ||
| 7919 | 9년 전 | 338 | ||
| 7918 | 9년 전 | 495 | ||
| 7917 | 9년 전 | 343 | ||
| 7916 | 9년 전 | 419 | ||
| 7915 | 9년 전 | 411 | ||
| 7914 | 9년 전 | 431 | ||
| 7913 | 9년 전 | 589 | ||
| 7912 | 9년 전 | 429 | ||
| 7911 | 9년 전 | 372 | ||
| 7910 | 9년 전 | 416 | ||
| 7909 | 9년 전 | 514 | ||
| 7908 | 9년 전 | 438 | ||
| 7907 | 9년 전 | 382 | ||
| 7906 | 9년 전 | 400 | ||
| 7905 | 9년 전 | 383 | ||
| 7904 | 9년 전 | 368 | ||
| 7903 | 9년 전 | 357 | ||
| 7902 | 9년 전 | 567 | ||
| 7901 |
|
9년 전 | 745 | |
| 7900 | 9년 전 | 599 | ||
| 7899 | 9년 전 | 396 | ||
| 7898 | 9년 전 | 396 | ||
| 7897 | 9년 전 | 356 | ||
| 7896 | 9년 전 | 366 | ||
| 7895 | 9년 전 | 476 | ||
| 7894 | 9년 전 | 402 | ||
| 7893 | 9년 전 | 356 | ||
| 7892 | 9년 전 | 406 | ||
| 7891 | 9년 전 | 773 | ||
| 7890 | 9년 전 | 1202 | ||
| 7889 | 9년 전 | 752 | ||
| 7888 |
limsy1987
|
9년 전 | 555 | |
| 7887 | 9년 전 | 565 | ||
| 7886 | 9년 전 | 457 | ||
| 7885 | 9년 전 | 420 | ||
| 7884 | 9년 전 | 420 | ||
| 7883 | 9년 전 | 418 | ||
| 7882 | 9년 전 | 469 | ||
| 7881 | 9년 전 | 452 | ||
| 7880 | 9년 전 | 587 | ||
| 7879 | 9년 전 | 474 | ||
| 7878 | 9년 전 | 1229 | ||
| 7877 | 9년 전 | 760 | ||
| 7876 | 9년 전 | 497 | ||
| 7875 | 9년 전 | 568 | ||
| 7874 |
|
9년 전 | 813 | |
| 7873 | 9년 전 | 526 | ||
| 7872 | 9년 전 | 688 | ||
| 7871 | 9년 전 | 491 | ||
| 7870 | 9년 전 | 616 | ||
| 7869 | 9년 전 | 439 | ||
| 7868 | 9년 전 | 461 | ||
| 7867 | 9년 전 | 436 | ||
| 7866 | 9년 전 | 504 | ||
| 7865 | 9년 전 | 462 | ||
| 7864 | 9년 전 | 520 | ||
| 7863 | 9년 전 | 519 | ||
| 7862 | 9년 전 | 474 | ||
| 7861 | 9년 전 | 652 | ||
| 7860 | 9년 전 | 634 | ||
| 7859 | 9년 전 | 423 | ||
| 7858 | 9년 전 | 708 | ||
| 7857 | 9년 전 | 1087 | ||
| 7856 | 9년 전 | 536 | ||
| 7855 | 9년 전 | 761 | ||
| 7854 | 9년 전 | 735 | ||
| 7853 | 9년 전 | 592 | ||
| 7852 | 9년 전 | 519 | ||
| 7851 | 9년 전 | 520 | ||
| 7850 | 9년 전 | 594 | ||
| 7849 | 9년 전 | 361 | ||
| 7848 | 9년 전 | 422 | ||
| 7847 | 9년 전 | 663 | ||
| 7846 | 9년 전 | 465 | ||
| 7845 | 9년 전 | 430 | ||
| 7844 | 9년 전 | 400 | ||
| 7843 | 9년 전 | 425 | ||
| 7842 | 9년 전 | 409 | ||
| 7841 | 9년 전 | 392 | ||
| 7840 | 9년 전 | 413 | ||
| 7839 | 9년 전 | 441 | ||
| 7838 | 9년 전 | 522 | ||
| 7837 | 9년 전 | 362 | ||
| 7836 | 9년 전 | 404 | ||
| 7835 | 9년 전 | 483 | ||
| 7834 |
|
9년 전 | 1200 | |
| 7833 | 9년 전 | 444 | ||
| 7832 | 9년 전 | 427 | ||
| 7831 | 9년 전 | 573 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기