i have a table with 3 td's , the one on center will be 1000px width
so i need to split the remaining pixels for left and right <td>
how can i do this with javascript?
i am using this code to get the exact resolution
HTML Code:
<script>
function getDocHeight() {
var D = document;
return Math.max(
D.body.scrollHeight, D.documentElement.scrollHeight,
D.body.offsetHeight, D.documentElement.offsetHeight,
D.body.clientHeight, D.documentElement.clientHeight
);
}
function getDocWidth() {
var D = document;
return Math.max(
D.body.scrollWidth, D.documentElement.scrollWidth,
D.body.offsetWidth, D.documentElement.offsetWidth,
D.body.clientWidth, D.documentElement.clientWidth
);
}
alert( getDocHeight() );
alert( getDocWidth() );
</script>
<td><td width=1000px><td>
Bookmarks