Okay I have a Site Page which uses the main sites banner and Quick launch bar.
I insert a CEWP part in the main area but when I add the MHTML it covers the Banner area (long black line with "gation Link" at the end.
Is this a probelm with the MHTML?
<style>
#s4-bodyContainer DIV.s4-title {
DISPLAY: none
}</style><iframe width="1150" height="400" id="myframe" src="/sites/XXXX/XXXX/MHML" frameborder="0" scrolling="no" style="align: left"></iframe>?<script language="javascript" type="text/javascript">
function ResizeHeight(elementName) { //find the height of the internal page var the_height = 0; var the_width = 0; var ele = document.getElementById(elementName); if (ele.contentWindow && ele.contentWindow.document.body) { // IE the_height = ele.contentWindow.document.body.scrollHeight; the_width = ele.contentWindow.document.body.scrollWidth; // firefox case if (ele.contentWindow.document.documentElement) { // fetch the correct height using documentElement in firefox if (the_height < ele.contentWindow.document.documentElement.scrollHeight) { the_height = ele.contentWindow.document.documentElement.scrollHeight; } } } else if (ele.contentDocument && ele.contentDocument.documentElement) { // chrome, safari, opera the_height = ele.contentDocument.documentElement.scrollHeight; the_width = ele.contentDocument.documentElement.scrollWidth; } else { // unused the_height = ele.contentWindow.document.documentElement.scrollHeight; the_width = ele.contentWindow.document.documentElement.scrollWidth; } //change the height of the iframe if (the_height > 0 && the_width > 0) { var diff = 0; if (ele.height < the_height) { ele.height = the_height + 50; } else { // reduce un-necessary space created after navigating between the pages diff = ele.height - the_height; if (diff > 50 && the_height > 50/* value is greater than minimum height */) { ele.height = the_height + 50; } } if (ele.width < the_width) { ele.width = the_width + 50; } else { // reduce un-necessary space created after navigating between the pages </script>
AP