<frameset cols="70%,*" id="body" frameborder="0" border="0">  
  <frame src="flow_view_chartmodel.aspx" id="MiddleBody" >
  <frame src="FlowSetRight.aspx" scrolling="no" id="rightBody" >
  </frameset>  

 

 

function SetCwinHeight(obj) {
            var cwin = obj;
            if (document.getElementById) {
                if (cwin && !window.opera) {
                    if (cwin.contentDocument && cwin.contentDocument.body.offsetHeight)
                        cwin.height = cwin.contentDocument.body.offsetHeight + 20; //FF NS
                    else if (cwin.Document && cwin.Document.body.scrollHeight)
                        cwin.height = cwin.Document.body.scrollHeight + 10; //IE
                }
                else {
                    if (cwin.contentWindow.document && cwin.contentWindow.document.body.scrollHeight)
                        cwin.height = cwin.contentWindow.document.body.scrollHeight; //Opera
                }
            }
        }

 

 

posted on 2012-09-10 10:49  Black Bean  阅读(895)  评论(0编辑  收藏  举报