1 (edited by tippi 2004-04-03 17:12)

Topic: Horizontal Scroll when forum is in frame

When I put the forum in a frame (with and high are relative) there is always
a horizontal scrollbar, does somebody know how
to remove it?

When I'm looking at the forum without frames
it doesn't show the horizontal scrollbar.

Thx

Tippi

Edit:

It is only on the main page of the forum.

2 (edited by colech 2004-04-22 18:32)

Re: Horizontal Scroll when forum is in frame

Here is what I used to iframe punBB.  It works great to eliminated the horizontal scroll bar and resize vertically automatically.

<script language="JavaScript">
function iFrameHeight() {
if(document.getElementById && !(document.all)) {
h = document.getElementById('iframename').contentDocument.body.scrollHeight;
document.getElementById('iframename').style.height = h;
}
else if(document.all) {
h = document.frames('iframename').document.body.scrollHeight;
document.all.iframename.style.height = h;
}
}
</script>

<iframe onLoad="iFrameHeight();" src="forum/index.php" scrolling="no"
 scroll="auto" id="iframename" marginwidth="0" marginheight="0"
 frameborder="0" style="width:100%;" height=600></iframe>