<!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년 전
써먹어야될곳이 생각났네요
감사합니다
감사합니다
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 230 | 20년 전 | 2039 | ||
| 229 | 20년 전 | 3131 | ||
| 228 | 20년 전 | 3322 | ||
| 227 | 20년 전 | 2384 | ||
| 226 | 20년 전 | 5460 | ||
| 225 | 20년 전 | 2512 | ||
| 224 | 20년 전 | 2957 | ||
| 223 | 20년 전 | 4198 | ||
| 222 | 20년 전 | 2597 | ||
| 221 | 20년 전 | 2280 | ||
| 220 | 20년 전 | 3671 | ||
| 219 | 20년 전 | 2063 | ||
| 218 | 20년 전 | 3555 | ||
| 217 | 20년 전 | 2471 | ||
| 216 | 20년 전 | 2899 | ||
| 215 | 20년 전 | 2207 | ||
| 214 | 20년 전 | 3326 | ||
| 213 | 20년 전 | 2909 | ||
| 212 | 20년 전 | 3040 | ||
| 211 | 20년 전 | 2141 | ||
| 210 | 20년 전 | 1876 | ||
| 209 | 20년 전 | 2335 | ||
| 208 | 20년 전 | 1965 | ||
| 207 | 20년 전 | 1668 | ||
| 206 | 20년 전 | 1849 | ||
| 205 | 20년 전 | 3940 | ||
| 204 | 20년 전 | 1671 | ||
| 203 | 20년 전 | 2003 | ||
| 202 | 20년 전 | 2349 | ||
| 201 | 20년 전 | 1816 | ||
| 200 | 20년 전 | 2947 | ||
| 199 | 20년 전 | 2001 | ||
| 198 | 20년 전 | 2079 | ||
| 197 | 20년 전 | 3643 | ||
| 196 | 20년 전 | 2967 | ||
| 195 | 20년 전 | 2086 | ||
| 194 | 20년 전 | 10235 | ||
| 193 | 20년 전 | 2238 | ||
| 192 | 20년 전 | 1583 | ||
| 191 | 20년 전 | 2655 | ||
| 190 | 20년 전 | 2283 | ||
| 189 | 20년 전 | 1676 | ||
| 188 | 20년 전 | 1465 | ||
| 187 | 20년 전 | 1898 | ||
| 186 | 20년 전 | 1697 | ||
| 185 | 20년 전 | 1734 | ||
| 184 | 20년 전 | 2331 | ||
| 183 | 20년 전 | 1541 | ||
| 182 | 20년 전 | 1475 | ||
| 181 | 20년 전 | 1614 | ||
| 180 | 20년 전 | 2710 | ||
| 179 | 20년 전 | 1790 | ||
| 178 | 20년 전 | 1843 | ||
| 177 | 20년 전 | 1968 | ||
| 176 | 20년 전 | 1794 | ||
| 175 | 20년 전 | 1866 | ||
| 174 | 20년 전 | 1689 | ||
| 173 | 20년 전 | 2054 | ||
| 172 | 20년 전 | 1778 | ||
| 171 | 20년 전 | 2551 | ||
| 170 | 20년 전 | 2260 | ||
| 169 | 20년 전 | 2537 | ||
| 168 | 20년 전 | 1467 | ||
| 167 | 20년 전 | 1565 | ||
| 166 | 20년 전 | 2142 | ||
| 165 | 20년 전 | 1607 | ||
| 164 | 20년 전 | 3754 | ||
| 163 | 20년 전 | 2648 | ||
| 162 | 20년 전 | 2066 | ||
| 161 | 20년 전 | 2774 | ||
| 160 | 20년 전 | 1721 | ||
| 159 | 20년 전 | 1596 | ||
| 158 | 20년 전 | 2546 | ||
| 157 | 20년 전 | 1476 | ||
| 156 | 20년 전 | 1715 | ||
| 155 | 20년 전 | 3223 | ||
| 154 | 20년 전 | 1878 | ||
| 153 | 20년 전 | 1610 | ||
| 152 | 20년 전 | 4936 | ||
| 151 | 20년 전 | 4562 | ||
| 150 | 20년 전 | 3503 | ||
| 149 | 20년 전 | 3772 | ||
| 148 | 20년 전 | 7055 | ||
| 147 | 20년 전 | 3537 | ||
| 146 | 20년 전 | 2604 | ||
| 145 | 20년 전 | 2601 | ||
| 144 | 20년 전 | 7162 | ||
| 143 | 20년 전 | 4584 | ||
| 142 | 20년 전 | 1890 | ||
| 141 | 20년 전 | 3247 | ||
| 140 | 20년 전 | 1950 | ||
| 139 | 20년 전 | 1544 | ||
| 138 | 20년 전 | 2289 | ||
| 137 | 20년 전 | 1769 | ||
| 136 | 20년 전 | 1446 | ||
| 135 | 20년 전 | 1781 | ||
| 134 | 20년 전 | 2959 | ||
| 133 | 20년 전 | 2433 | ||
| 132 | 20년 전 | 1703 | ||
| 131 | 20년 전 | 1631 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기