'iframe'에 해당되는 글 1건

  1. 2007/07/04 sharP iframe resize Automatic

<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>

2007/07/04 13:33 2007/07/04 13:33
TAG ,
받은 트랙백이 없고, 댓글이 없습니다.

댓글+트랙백 RSS :: http://sharpsoul.com/sharp/rss/response/8

댓글+트랙백 ATOM :: http://sharpsoul.com/sharp/atom/response/8