19 March 2006, 23:30 UTC#1
Is there any way to make an expanding iframe?
19 March 2006, 23:35 UTC#2
If there is, I don't know it, and I've never heard of it.
19 March 2006, 23:37 UTC#3
what do you mean, expanding? like click it and make it expand? or expands upon page load? if it's either one of those, then it's not possible.
19 March 2006, 23:47 UTC#4
Like, the more there's text the bigger the iframe is. I know how to do this with tables but I wanna know if it's possible with iframe
19 March 2006, 23:58 UTC#5
I'm going to go with no.
20 March 2006, 00:06 UTC#6
there was a code by Eddie Traversa, but I'm not sure if I remember how to work it because it's not on his site anymore.. so maybe you can figure it out by fucking around with it.
QUOTE
<script type="text/javascript">
function autofitIframe(id){ // v.1.0
//copyright 2004 Eddie Traversa
http://www.dhtmlnirvana.com/if (!window.opera && !document.mimeType && document.all && document.getElementById){
parent.document.getElementById(id).style.height=this.document.body.offsetHeight+"px";
}
else if(document.getElementById) {
parent.document.getElementById(id).style.height=this.document.body.scrollHeight+"px"
}
}
</script>
</head>
<body onload="autofitIframe('contentFRM');">
20 March 2006, 00:08 UTC#7
ROFL
the fucking point of an iframe is to stay one size, and have the stuff inside scroll to its size
If you want a expanding table, you can do this..
<table>
<tr>
<td height="100%" class="blah">
The content goes here<br>
<br>Blah<br>Blah<br>Blah<br>
</td>
</tr>
</table>
if you want to make it a bit more nice and have like 3 images that expand
have it be like this
<table>
<tr>
<td rowspan="3"><img src="topimage.gif"></td>
</tr>
<tr>
<td height="100" width="10" class="content" background="imageonleft.gif"></td>
<td height="100" width="200" class="content" background="centerback.gif"></td>
<td height="100" width="10" class="content" background="imageonright.gif"></td>
</tr>
</table>
20 March 2006, 00:09 UTC#8
QUOTE(adEm @ Mar 20 2006, 12:06 AM) [snapback]305506[/snapback]
there was a code by Eddie Traversa, but I'm not sure if I remember how to work it because it's not on his site anymore.. so maybe you can figure it out by fucking around with it.
QUOTE
<script type="text/javascript">
function autofitIframe(id){ // v.1.0
//copyright 2004 Eddie Traversa
http://www.dhtmlnirvana.com/if (!window.opera && !document.mimeType && document.all && document.getElementById){
parent.document.getElementById(id).style.height=this.document.body.offsetHeight+"px";
}
else if(document.getElementById) {
parent.document.getElementById(id).style.height=this.document.body.scrollHeight+"px"
}
}
</script>
</head>
<body onload="autofitIframe('contentFRM');">
I found that code too, the website and "some" explanation is
here20 March 2006, 00:10 UTC#9
double post, stupid slow shit
20 March 2006, 00:14 UTC#10
so its not just me that hgf is being slow for..
20 March 2006, 00:16 UTC#11
Nope, it wont even work for Ferret.
20 March 2006, 00:28 UTC#12
its this gay vps its hosted on