<script language='JavaScript' type='text/javascript'>
function resizeFrame(iframeObj){
var innerBody = iframeObj.contentWindow.document.body;
oldEvent = innerBody.onclick;
innerBody.onclick = function(){ resizeFrame(iframeObj, 1);oldEvent; };
var innerHeight = innerBody.scrollHeight + (innerBody.offsetHeight - innerBody.clientHeight);
iframeObj.style.height = innerHeight;
var innerWidth = innerBody.scrollWidth + (innerBody.offsetWidth - innerBody.clientWidth);
iframeObj.style.width = innerWidth;
if( !arguments[1] ) /* just leave Scroll in case specific event. */
this.scrollTo(1,1);
}
</script>
<iframe name="SharP" id="SharP" src=",,," style="width:400px"
frameborder="0" framespacing="0" scrolling="no" onLoad="resizeFrame(this);"></iframe>
'resize'에 해당되는 글 1건
- 2007/07/04 sharP iframe resize Automatic
받은 트랙백이 없고,
댓글이 없습니다.

글
댓글을 달아 주세요
댓글 RSS 주소 : http://sharpsoul.com/sharp/rss/comment/8댓글 ATOM 주소 : http://sharpsoul.com/sharp/atom/comment/8