<!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년 전
써먹어야될곳이 생각났네요
감사합니다
감사합니다
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 8230 | 9년 전 | 145 | ||
| 8229 | 9년 전 | 126 | ||
| 8228 |
커네드커네드
|
9년 전 | 168 | |
| 8227 | 9년 전 | 213 | ||
| 8226 | 9년 전 | 228 | ||
| 8225 | 9년 전 | 206 | ||
| 8224 | 9년 전 | 213 | ||
| 8223 | 9년 전 | 182 | ||
| 8222 |
|
9년 전 | 253 | |
| 8221 | 9년 전 | 163 | ||
| 8220 | 9년 전 | 193 | ||
| 8219 | 9년 전 | 162 | ||
| 8218 | 9년 전 | 198 | ||
| 8217 |
star3840
|
9년 전 | 176 | |
| 8216 | 9년 전 | 242 | ||
| 8215 | 9년 전 | 186 | ||
| 8214 | 9년 전 | 295 | ||
| 8213 | 9년 전 | 254 | ||
| 8212 | 9년 전 | 164 | ||
| 8211 | 9년 전 | 339 | ||
| 8210 | 9년 전 | 338 | ||
| 8209 | 9년 전 | 414 | ||
| 8208 | 9년 전 | 300 | ||
| 8207 | 9년 전 | 306 | ||
| 8206 |
|
9년 전 | 259 | |
| 8205 | 9년 전 | 239 | ||
| 8204 | 9년 전 | 220 | ||
| 8203 | 9년 전 | 290 | ||
| 8202 | 9년 전 | 207 | ||
| 8201 | 9년 전 | 252 | ||
| 8200 | 9년 전 | 259 | ||
| 8199 | 9년 전 | 273 | ||
| 8198 | 9년 전 | 236 | ||
| 8197 | 9년 전 | 226 | ||
| 8196 | 9년 전 | 640 | ||
| 8195 | 9년 전 | 240 | ||
| 8194 | 9년 전 | 351 | ||
| 8193 | 9년 전 | 254 | ||
| 8192 | 9년 전 | 268 | ||
| 8191 | 9년 전 | 218 | ||
| 8190 | 9년 전 | 212 | ||
| 8189 | 9년 전 | 276 | ||
| 8188 | 9년 전 | 209 | ||
| 8187 | 9년 전 | 212 | ||
| 8186 | 9년 전 | 215 | ||
| 8185 | 9년 전 | 378 | ||
| 8184 | 9년 전 | 168 | ||
| 8183 | 9년 전 | 389 | ||
| 8182 | 9년 전 | 250 | ||
| 8181 | 9년 전 | 201 | ||
| 8180 | 9년 전 | 779 | ||
| 8179 | 9년 전 | 549 | ||
| 8178 | 9년 전 | 407 | ||
| 8177 |
kiplayer
|
9년 전 | 406 | |
| 8176 | 9년 전 | 438 | ||
| 8175 | 9년 전 | 328 | ||
| 8174 | 9년 전 | 321 | ||
| 8173 | 9년 전 | 408 | ||
| 8172 | 9년 전 | 290 | ||
| 8171 | 9년 전 | 252 | ||
| 8170 | 9년 전 | 373 | ||
| 8169 |
커네드커네드
|
9년 전 | 324 | |
| 8168 | 9년 전 | 405 | ||
| 8167 | 9년 전 | 397 | ||
| 8166 | 9년 전 | 297 | ||
| 8165 | 9년 전 | 243 | ||
| 8164 | 9년 전 | 372 | ||
| 8163 | 9년 전 | 369 | ||
| 8162 | 9년 전 | 369 | ||
| 8161 | 9년 전 | 386 | ||
| 8160 |
|
9년 전 | 587 | |
| 8159 | 9년 전 | 529 | ||
| 8158 | 9년 전 | 330 | ||
| 8157 | 9년 전 | 442 | ||
| 8156 | 9년 전 | 329 | ||
| 8155 | 9년 전 | 323 | ||
| 8154 |
00년생용띠
|
9년 전 | 660 | |
| 8153 | 9년 전 | 304 | ||
| 8152 |
|
9년 전 | 484 | |
| 8151 | 9년 전 | 484 | ||
| 8150 | 9년 전 | 585 | ||
| 8149 |
Jangfolk
|
9년 전 | 443 | |
| 8148 | 9년 전 | 257 | ||
| 8147 | 9년 전 | 447 | ||
| 8146 | 9년 전 | 531 | ||
| 8145 | 9년 전 | 483 | ||
| 8144 | 9년 전 | 448 | ||
| 8143 | 9년 전 | 283 | ||
| 8142 | 9년 전 | 494 | ||
| 8141 | 9년 전 | 446 | ||
| 8140 | 9년 전 | 1002 | ||
| 8139 | 9년 전 | 354 | ||
| 8138 |
전갈자리남자
|
9년 전 | 457 | |
| 8137 | 9년 전 | 498 | ||
| 8136 | 9년 전 | 822 | ||
| 8135 |
|
9년 전 | 860 | |
| 8134 |
PlayPixel
|
9년 전 | 602 | |
| 8133 |
|
9년 전 | 508 | |
| 8132 | 9년 전 | 548 | ||
| 8131 | 9년 전 | 904 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기