<!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년 전
써먹어야될곳이 생각났네요
감사합니다
감사합니다
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 430 | 19년 전 | 4097 | ||
| 429 | 19년 전 | 3295 | ||
| 428 | 19년 전 | 4131 | ||
| 427 | 19년 전 | 3467 | ||
| 426 | 19년 전 | 3100 | ||
| 425 | 19년 전 | 3400 | ||
| 424 | 19년 전 | 2438 | ||
| 423 | 19년 전 | 2858 | ||
| 422 | 19년 전 | 2346 | ||
| 421 | 19년 전 | 3705 | ||
| 420 | 19년 전 | 4732 | ||
| 419 | 19년 전 | 3792 | ||
| 418 |
|
19년 전 | 1739 | |
| 417 | 19년 전 | 2743 | ||
| 416 | 19년 전 | 2387 | ||
| 415 | 19년 전 | 2605 | ||
| 414 | 19년 전 | 4407 | ||
| 413 |
|
19년 전 | 2594 | |
| 412 | 19년 전 | 3042 | ||
| 411 |
|
19년 전 | 2990 | |
| 410 |
|
19년 전 | 3680 | |
| 409 |
|
19년 전 | 3631 | |
| 408 |
|
19년 전 | 1852 | |
| 407 | 19년 전 | 2225 | ||
| 406 | 19년 전 | 2780 | ||
| 405 | 19년 전 | 2442 | ||
| 404 | 19년 전 | 4296 | ||
| 403 | 19년 전 | 3300 | ||
| 402 |
NeoGenesis
|
19년 전 | 4088 | |
| 401 | 19년 전 | 2604 | ||
| 400 |
|
19년 전 | 2490 | |
| 399 | 19년 전 | 2953 | ||
| 398 | 19년 전 | 2483 | ||
| 397 | 19년 전 | 2778 | ||
| 396 | 19년 전 | 2470 | ||
| 395 | 19년 전 | 3176 | ||
| 394 | 19년 전 | 1712 | ||
| 393 | 19년 전 | 2989 | ||
| 392 | 19년 전 | 2249 | ||
| 391 | 19년 전 | 2174 | ||
| 390 | 19년 전 | 2283 | ||
| 389 | 19년 전 | 2641 | ||
| 388 | 19년 전 | 2167 | ||
| 387 | 19년 전 | 4483 | ||
| 386 |
|
19년 전 | 2687 | |
| 385 |
|
19년 전 | 2479 | |
| 384 | 19년 전 | 3006 | ||
| 383 | 19년 전 | 3047 | ||
| 382 | 19년 전 | 3101 | ||
| 381 |
|
19년 전 | 2628 | |
| 380 |
|
19년 전 | 3013 | |
| 379 | 19년 전 | 2545 | ||
| 378 | 19년 전 | 2203 | ||
| 377 | 19년 전 | 2775 | ||
| 376 | 19년 전 | 2466 | ||
| 375 |
|
19년 전 | 2554 | |
| 374 | 19년 전 | 3815 | ||
| 373 | 19년 전 | 3263 | ||
| 372 | 19년 전 | 4984 | ||
| 371 |
세은아빠2
|
19년 전 | 2411 | |
| 370 | 19년 전 | 4495 | ||
| 369 | 19년 전 | 3108 | ||
| 368 | 19년 전 | 2896 | ||
| 367 | 19년 전 | 3721 | ||
| 366 | 19년 전 | 2646 | ||
| 365 | 19년 전 | 3733 | ||
| 364 | 19년 전 | 4009 | ||
| 363 | 19년 전 | 3434 | ||
| 362 | 19년 전 | 3474 | ||
| 361 | 19년 전 | 4103 | ||
| 360 |
hwatta
|
19년 전 | 2357 | |
| 359 | 19년 전 | 5098 | ||
| 358 | 19년 전 | 3653 | ||
| 357 | 19년 전 | 2593 | ||
| 356 |
sdesign1s
|
19년 전 | 2274 | |
| 355 | 20년 전 | 2745 | ||
| 354 | 20년 전 | 3026 | ||
| 353 | 20년 전 | 2786 | ||
| 352 |
|
20년 전 | 5768 | |
| 351 |
|
20년 전 | 2699 | |
| 350 |
|
20년 전 | 4287 | |
| 349 |
hwatta
|
20년 전 | 2179 | |
| 348 | 20년 전 | 7306 | ||
| 347 | 20년 전 | 2412 | ||
| 346 | 20년 전 | 3499 | ||
| 345 | 20년 전 | 4304 | ||
| 344 | 20년 전 | 2640 | ||
| 343 | 20년 전 | 3918 | ||
| 342 | 20년 전 | 3064 | ||
| 341 | 20년 전 | 4082 | ||
| 340 |
|
20년 전 | 5134 | |
| 339 |
|
20년 전 | 4231 | |
| 338 | 20년 전 | 5865 | ||
| 337 | 20년 전 | 2040 | ||
| 336 |
|
20년 전 | 3314 | |
| 335 |
|
20년 전 | 3536 | |
| 334 |
|
20년 전 | 2917 | |
| 333 |
hwatta
|
20년 전 | 2428 | |
| 332 | 20년 전 | 4653 | ||
| 331 | 20년 전 | 2267 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기