Previous Message
Next Message

css-discuss archive

Sent by Scott Hamm on 12 September 2003 04:04


I'm having problem with height positioning using js' iframe. My intention is
to use up 100% of the content inside iframe AND no scroll for iframe itself.
I want to use browser's scroll instead of the iframe. How can I get around
to it? My Intranet's default browser is IE 5.5.

<style>
#content{
	position: absolute;
	margin-top: 120px;
	margin-left: 0px;
	text-align: justify;
	width: 781px;
	height: 100%;
	}
<snip>
</style>

<snip>
some menu stuffs on top of body
</snip>

<div id="content">
<script language="javascript">
<!--
var displaymode=0
var iframecode='<iframe id="external" style="width:100%;height:100%;"
src="file/HotNews/index.htm"></iframe>'
if (displaymode==0)
document.write(iframecode)
 function jumpto(inputurl){
if (document.getElementById&&displaymode==0)
document.getElementById("external").src=inputurl
else if (document.all&&displaymode==0)
document.all.external.src=inputurl
else{
if (!window.win2||win2.closed)
win2=window.open(inputurl)
//else if win2 already exists
else{
win2.location=inputurl
win2.focus()
}
}
}
//-->
</script>

</div>

Thanks in advance,

Scott
______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
http://www.css-discuss.org/mailman/listinfo/css-d
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Previous Message
Next Message

Possibly related: