Z
z
Hi,
i just wanted to know how i can resize a table using javascript but in this
special manner:
I have two tables, one at the top of the page and the other below that one.
The problem is that in that code shown below there is a scroll in the
window, and what I want is resizing the table t2 from the height of 100%
down to the max number of pixels so that there is no scroll in the window.
Which should be the code for the function resizeTable ?
I wonder if u get the idea...
The code is like this:
<html>
<head>
<script language="javascript" src="fun.js"></script>
</head>
<body onLoad="resizeTable(document.getElementById(t2))">
<table id="t1" width="100%" border="1">
<tr><td>some text</td></tr>
</table>
<br>
<table id="t2" width="100%" height="100%" border="1">
<tr><th>title</th></tr>
<tr><td>some text</td></tr>
</table>
</body>
</html>
Any suggestions?
Thx in advance
i just wanted to know how i can resize a table using javascript but in this
special manner:
I have two tables, one at the top of the page and the other below that one.
The problem is that in that code shown below there is a scroll in the
window, and what I want is resizing the table t2 from the height of 100%
down to the max number of pixels so that there is no scroll in the window.
Which should be the code for the function resizeTable ?
I wonder if u get the idea...
The code is like this:
<html>
<head>
<script language="javascript" src="fun.js"></script>
</head>
<body onLoad="resizeTable(document.getElementById(t2))">
<table id="t1" width="100%" border="1">
<tr><td>some text</td></tr>
</table>
<br>
<table id="t2" width="100%" height="100%" border="1">
<tr><th>title</th></tr>
<tr><td>some text</td></tr>
</table>
</body>
</html>
Any suggestions?
Thx in advance