heiho all
hab da wider mal ne frage:
ich möchte herausfinden wie gross das anzeigefenster des browsers ist und damit dann die tabellenbreite anpassen.
ich bin soweit:
dort wo die 3 fragezeichen sind, möcht ich dann die variable test2 ausgeben! bin halt der wirkliche javascript newbie!!!!
hab da wider mal ne frage:
ich möchte herausfinden wie gross das anzeigefenster des browsers ist und damit dann die tabellenbreite anpassen.
ich bin soweit:
Code:
<html>
<head>
<style type="text/css">
body { margin-top:0cm;
margin-left:0cm;
}
</style>
<title>tab1</title>
</head>
<body>
<script type="text/javascript">
var test= screen.width;
if(test == 1024)
{
test2 = 100;
}
elseif(test == 800)
{
test2 = 1000;
}
</script>
<table border="1" width="" cellspacing="0" cellpadding="0">
<tr height="30">
<td colspan="3" width=""><font size="+5">Das ist die Überschrift</font></td>
</tr>
<tr height="500">
<td width="190">Rahmen links</td>
<td width="590">Inhalt</td>
<td width="???">Blindrahmen</td>
</tr>
</table>
</body>
Kommentar