홈   즐겨찾기   시작페이지로   문의하기
컨설팅 인큐베이팅 파트너쉽 ToTs
IT컨설팅
CI/BI제작
홈페이지제작
솔루션도입
호스팅
유지보수&운영대행
마케팅
모바일웹
ToTs 사례
상담현황
Q&A
서비스 ToTs 사례
전체글 2086 건
웹에도 인간적인 요소가 필요하다
주민번호의 숨겨진 비밀..
대규모 포털서비스 시스템, 이렇게 구축하고 운영한다.
색의 감성효과
프로페셔널 디자이너
웹 카피 쓰는 10가지 스타일
아이프레임 사이즈 자동변환
iframe 사이즈 자동으로 조절하기
홈페이지 접속시 바탕화면 아이콘 만들기 (BaCon)
웹기획자가 말하는 마자마자 BEST5

#아이프레임#자동변환

방법...1..

<script Language='javascript'>
function reSize() {
        try{
        var objBody = ifrm.document.body;
        var objFrame = document.all["ifrm"];
        ifrmHeight = objBody.scrollHeight + (objBody.offsetHeight - objBody.clientHeight);
       
        if (ifrmHeight > 300) {
                objFrame.style.height = ifrmHeight
        }else{
                objFrame.style.height = 300;
        }
        objFrame.style.width = '100%'
        }catch(e){}
}
function init_iframe() {
        reSize();
        setTimeout('init_iframe()',200)
}
init_iframe();
</script><iframe id='ifrm' src="보여질페이지주소" width="가로크기" height="세로크기" frameborder=0 marginheight=0 marginwidth=0></iframe>


방법2.

<script>
function doResize()
{
container.height = myframe.document.body.scrollHeight;
container.width = myframe.document.body.scrollWidth;
}
</script>
<table border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td id="container"><iframe src="your_file.html" name="myframe" width="100%" height="100%" marginwidth="0" marginheight="0" frameborder="no" onload="doResize()"></iframe></td>
  </tr>
</table>





회사소개 이메일무단수집거부 ToTs사례 찾아오시는 길