|
| |
|
|
oswald8
Posts: 2 Joined: 6/9/2008 Status: offline
|
problem resizing iframe... - 6/9/2008 23:04:17
Hi! I found this code online that could make my iframe vary height depending on its content. It works awsomely in IE, but in mozilla firefox, it's a diffrent story! The frame expands well with the content, but it never shrinks back. Can anyone help me? here's my page: luckyoswald.net For the code, I pasted this in the head of my main page (the one that contains the iframe) ------------------------ <script language="JavaScript"> <!-- function calcHeight() { //find the height of the internal page var the_height= document.getElementById('the_iframe').contentWindow. document.body.scrollHeight; //change the height of the iframe document.getElementById('the_iframe').height= the_height; } //--> </script> ------------------------ and this is my iframe tag ------------------------ <iframe width="741" id="the_iframe" onLoad="calcHeight();" onload=resize_iframe src="blog.htm" scrolling="no" frameborder="0" height="1" marginwidth="1" marginheight="1" name="I1" border="0"> </iframe> ------------------------ thanks in advance!
|
|
|
|
oswald8
Posts: 2 Joined: 6/9/2008 Status: offline
|
RE: problem resizing iframe... - 6/10/2008 12:59:06
Wow, I had this HUGE downtime yesterday so no one could view my site.. It's working this morning, it's just incredibly slow... http://luckyoswald.net
|
|
New Messages |
No New Messages |
Hot Topic w/ New Messages |
Hot Topic w/o New Messages |
Locked w/ New Messages |
Locked w/o New Messages |
|
Post New Thread
Reply to Message
Post New Poll
Submit Vote
Delete My Own Post
Delete My Own Thread
Rate Posts
|
|
|