$(document).ready(function(){
$("#board_IFM").load(function(){
alert($(this.contentDocument).find('body').height());
$("#iframe_src").attr('value',$(this.contentDocument).find('body').height());
var iHeight=($(this.contentDocument).find('body').height());
$(this).height(iHeight);
})
})
<iframe frameborder='0' id='board_IFM' name='board_IFM' style='width:791px;' scrolling="no" src="경로"></iframe>
아.. 삽질 좀 했네.. 잘 써먹어야 할텐데..ㅋㅋ
<iframe frameborder='0' id='board_IFM' name='board_IFM' style='width:791px;' scrolling="no" src="경로"></iframe>
아.. 삽질 좀 했네.. 잘 써먹어야 할텐데..ㅋㅋ
'Web Progreming' 카테고리의 다른 글
[ jQuery ] 이미지 센타로 오게하는... (0) | 2012.02.17 |
---|---|
[ jquery ] 마우스 따라 다니기 (0) | 2012.02.07 |
[ JavaScript ] 브라우저 체크 (0) | 2012.01.13 |
[ javascript ] 콤마 추가, 없애기 (0) | 2012.01.09 |
[ Linux ] 아파치 동시접속자수 확인 (0) | 2011.12.26 |