Automatisk højde ?
Som du kan se på www.vodskov.org/index1.php er der en scrollbar i siden af rammen... jeg vil gerne have sådan at den ramme tilpasser størrelse efter hvor lang siden i "iframen" er???KODE:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_reloadPage(init) { //reloads the window if Nav4 resized
if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
//-->
</script>
<link href="footbox.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
.style2 {
font-size: xx-large;
font-family: Arial, Helvetica, sans-serif;
}
.style3 {font-size: 10pt}
a:link {
color: #000000;
text-decoration: none;
}
a:visited {
text-decoration: none;
color: #000000;
}
a:hover {
text-decoration: none;
color: #000000;
}
a:active {
text-decoration: none;
color: #000000;
}
-->
</style>
</head>
<body>
<div align="center">
<table width="1062" td height="100%" border="0" cellpadding="0" cellspacing="0">
<!--DWLayoutTable-->
<tr>
<td width="23" height="17"></td>
<td width="33"></td>
<td width="118"></td>
<td width="25"></td>
<td width="548"></td>
<td width="25"></td>
<td width="124"></td>
<td width="26"></td>
<td width="142"></td>
</tr>
<tr>
<td height="121"></td>
<td></td>
<td colspan="5" align="center" valign="top"><div align="center"><img src="banner.jpg" width="840" height="121" border="1"></div></td>
<td> </td>
<td></td>
</tr>
<tr>
<td height="25"></td>
<td></td>
<td> </td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td height="36"></td>
<td colspan="2" valign="top" bgcolor="#CCCCCC" class="topbox"><div align="center">Menu</div></td>
<td></td>
<td valign="top" bgcolor="#CCCCCC" class="topbox"><div align="center">vodskov.org</div></td>
<td> </td>
<td colspan="2" valign="top" bgcolor="#CCCCCC" class="topbox"><div align="center" class="style3"> <strong>Seneste forum tråde</strong></div></td>
<td> </td>
</tr>
<tr>
<td height="183"></td>
<td colspan="2" align="left" valign="top" bgcolor="#FFFFFF" class="footbox"><div align="left"><a href="http://forum.vodskov.org" target="body">FORUM SPASSER KASPER</a> </div></td>
<td></td>
<td rowspan="5" valign="top" height="100%" class="footbox"><iframe name="body" width="672" height="100%" align="left" marginwidth="0" marginheight="0" border="0" frameborder="0" src="news/index.php"></iframe></td>
<td></td>
<td colspan="2" align="right" valign="top" class="footbox"><div align="left">
<?php include('forbindelse.php'); ?>
<?php
$sql = "
SELECT topic_id, topic_title, FROM_UNIXTIME(topic_time, '') as topic_add_time
FROM phpbb_topics
ORDER BY topic_time DESC
LIMIT 10";
$result = mysql_query($sql) or die( mysql_error() );
echo '<span class="bold_boldheader">10 seneste Indæg:</span>';
echo '<span class="bold_linebreak_top"><br><br></span>';
while ( $data = mysql_fetch_assoc($result) ) {
echo "<span class=\"bold_time\">{$data['topic_add_time']} </span><a href=\"http://forum.vodskov.org/viewtopic.php?t={$data['topic_id']}\" target=\"_self\" class=\"bold_headline\">{$data['topic_title']}</a><br>";
}
?>
</div></td>
<td> </td>
</tr>
<tr>
<td height="33"></td>
<td> </td>
<td> </td>
<td></td>
<td></td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td height="36"></td>
<td colspan="2" valign="top" bgcolor="#CCCCCC" class="topbox"><div align="center">Top 10: Øl</div></td>
<td></td>
<td></td>
<td colspan="2" valign="top" bgcolor="#CCCCCC" class="topbox"><div align="center">Afstemning</div></td>
<td> </td>
</tr>
<tr>
<td height="204"></td>
<td colspan="2" align="left" valign="top" background="carlsberg1.jpg" class="footbox"><!--DWLayoutEmptyCell--> </td>
<td></td>
<td></td>
<td colspan="2" align="right" valign="top" class="footbox"><!--DWLayoutEmptyCell--> </td>
<td> </td>
</tr>
<tr>
<td height="57"></td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td height="69"></td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
</table>
</div>
</body>
</html>