HI! thanks Steve, I am trying to expand a middle cell to be the size - some
pixels in order to make a graphics on a page to be aligned.
Take a look here.
http://www.ajmusicmedia.com
The top left and bottom blue image is suppose to be flush with the top and
bottom respectively. So I need to figure out a way to expand the middle cell
to make it all fit. I figure perhaps I can use a transparent gif/png and set
its size to the height - some pixels to the height of the iframe page. Also
note that the iframe page has variable content and scales to fit its
content. I use a script to this.
At the bottom of this page I have included the auto resizing script for the
iframe and it works great in all browsers.
So I just need a way to expand that middle cell. do you have a better
suggestion or approach?
----------------Auto Iframe Resizing Script-------------------
<script language="JavaScript">
<!--
var origheight = 0;
function autoResize(id){
var newheight;
if (!window.opera && !document.mimeType && document.all &&
document.getElementById)
newheight=document.getElementById(id).contentWindow.document.body.offsetHeight;
else if(document.getElementById)
newheight=document.getElementById(id).contentWindow.document.body.scrollHeight;
document.getElementById(id).height= (newheight + 0) + "px";
if
(document.getElementById(id).contentWindow.location.href.indexOf("index_test.html")>0
&& origheight>0)
document.body.style.height = origheight;
}
//-->
</script>
----------------End of Auto Iframe resizing script-------------------
This is how I call the function in the Iframe tag.
<iframe src="Without_FL/iframes/main_iframe.html" id="Iframemain"
name="Iframemain" height="560" width="492" scrolling="no" frameborder="0"
marginwidth="0" marginheight="0" onLoad="autoResize('Iframemain');">some
text</iframe>
----------------
One last thing is that I use another menu script that uses a body unload
event handler so it was needed to add this into its code to the onload
section.
origheight = document.body.clientHeight;