Georgi Naumov wrote:
Hint:
var cw = document.body.clientWidth +"px";
var ch = document.body.clientHeight +"px";
Did you try this way ?
yes, I did, Georgi, thank you.. (actually not sure you need "px" in
there because for table height in html you don't have to specify px..
error was of different nature..
I actually have two of these,
<script type="text/javascript" language="JavaScript">
var cw = document.body.clientWidth;
var ch = document.body.clientHeight-100;
document.write('<div id="thumbs" style="height:' + ch + ';">');
/* rest of styles for this div in header, good to know you can split
css code like that, like this you put only props whose values are vars
in here....:)
</script>
<script type="text/javascript" language="JavaScript">
var cw = document.body.clientWidth;
var ch = document.body.clientHeight-80;
document.write('<table border=0 cellpadding=0 cellspacing=0 width="100%"
height=' + ch + '>');
</script>
the first one never gave me hard time, only the second one did because
I had it only once instead of putting it into each div...:) and this
one is of divs that show up and disappear dynamically..) thank you very
much...
thank you again.......
-m