I got a javascript that reads the height and width of a frame.
I want to give the table the same height and width, but i can't get it to work.
This is my javascript:
function FrameHeight()
{
if (document.layers) {
height = window.innerHeight;
}
else if (document.all) {
height = document.body.clientHeight;
}
}
function FrameWidth()
{
if (document.layers) {
width = window.innerWidth;
}
else if (document.all) {
width = document.body.clientWidth;
}
}
And here is my table:
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" HEIGHT="FrameHeight()" WIDTH="FrameWidth()">
<TR>
<TD ALIGN="center" VALIGN="middle" STYLE="border-top: 1 solid #000000; border-bottom: 1 solid #000000"><IMG SRC=http://www.webdeveloper.com/forum/archive/index.php/"gfx/uc.jpg" BORDER="0" WIDTH="600" HEIGHT="200" ALIGN="bottom"></TD>
</TR>
</TABLE>
Can someone please help me. I know my javascript are working.
I want to give the table the same height and width, but i can't get it to work.
This is my javascript:
function FrameHeight()
{
if (document.layers) {
height = window.innerHeight;
}
else if (document.all) {
height = document.body.clientHeight;
}
}
function FrameWidth()
{
if (document.layers) {
width = window.innerWidth;
}
else if (document.all) {
width = document.body.clientWidth;
}
}
And here is my table:
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" HEIGHT="FrameHeight()" WIDTH="FrameWidth()">
<TR>
<TD ALIGN="center" VALIGN="middle" STYLE="border-top: 1 solid #000000; border-bottom: 1 solid #000000"><IMG SRC=http://www.webdeveloper.com/forum/archive/index.php/"gfx/uc.jpg" BORDER="0" WIDTH="600" HEIGHT="200" ALIGN="bottom"></TD>
</TR>
</TABLE>
Can someone please help me. I know my javascript are working.