lige nu ser den sådan ud.
men firefox siger "fejl i tolkning af værdi for 'height'. erklæring droppet"
function infoboxtest(id,navn, str, dim ,dat,vist, opret){
if(document.body.offsetHeight > document.body.scrollHeight){
var str = document.body.offsetHeight;
}else{
var str = document.body.scrollHeight;
}
document.getElementById("testinfo1").style.height = str+" px";
document.getElementById("testinfo1").style.display = "inline";
document.getElementById("testinfo2").style.display = "inline";
}
function infoboxclose(){
document.getElementById("testinfo1").style.display = "none";
document.getElementById("testinfo2").style.display = "none";
}
<body>.....
<div class="bgdiv" style="display:none; vertical-align:middle; position:absolute; left: 0px; top: 0px; filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='gfx/matte.png',sizingMethod='scale');" id="testinfo1" >
</div>
<div class="bgdiv" style="display:none; vertical-align:middle; position:absolute; left: 0px; top: 0px;" id="testinfo2">
<center>
<table width="236" border="0" cellspacing="0" cellpadding="0" >
<tr>
<td>
<img src="gfx/blank.gif" class="bgdiv">
</td>
</tr>
<tr valign="middle" style="vertical-align:middle">
<td valign="middle" style="vertical-align:middle">
<table width="236" border="0" cellspacing="0" cellpadding="0" >
<tr>
<td colspan="3"><img src="gfx/popup_top1.gif" alt=""><img src="gfx/popup_top2.gif" alt="luk" onclick="infoboxclose()" style="cursor:hand"></td>
</tr>
<tr>
<td style="background-image:url(gfx/popup_ven.gif); background-repeat:repeat-y; width:13px; background-color:#FFFFFF; "> </td>
<td width="210" valign="top" style="background-color:#FFFFFF; ">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr align="center">
<td colspan="2"><strong>Navn:</strong> </td>
</tr>
<tr align="center">
<td colspan="2"><a href="
www.sol.dk">navn</a></td> </tr>
<tr align="center">
<td> </td>
<td> </td>
</tr>
<tr align="center">
<td width="50%" class="infoboxsplit"><strong>Størrelse:</strong></td>
<td width="50%"><strong>Dimention:</strong></td>
</tr>
<tr align="center">
<td width="50%"class="infoboxsplit">'+ str +'</td>
<td width="50%">'+ dim +'</td>
</tr>
<tr align="center">
<td width="50%"class="infoboxsplit"> </td>
<td width="50%"> </td>
</tr>
<tr align="center">
<td class="infoboxsplit"><strong>Taget d.:</strong></td>
<td><strong>Upload af:</strong></td>
</tr>
<tr align="center">
<td class="infoboxsplit">'+ dat +'</td>
<td>'+ opret +'</td>
</tr>
<tr align="center">
<td class="infoboxsplit"> </td>
<td> </td>
</tr>
<tr align="center">
<td class="infoboxsplit"><strong>Vist:</strong></td>
<td> </td>
</tr>
<tr align="center">
<td class="infoboxsplit">'+ vist +' gange</td>
<td> </td>
</tr>
</table>
<strong>Kategoriger:</strong><br>
<div align="left" style="overflow: auto;height: 32px; margin-left:10 px;" id="infoboxkat'+id+'">'+kat+'<br></div>' +
</td>
<td style="background-image:url(gfx/popup_hoj.gif); background-repeat:repeat-y; width:13px; background-position:right; background-color:#FFFFFF;"> </td>
</tr>
<tr>
<td height="9" colspan="3"><img src="gfx/popup_bund.gif" alt="" width="236" height="9"></td>
</tr>
</table>
</td>
</tr>
</table>
</center>
</div>