QBomb
01-22-2003, 10:37 PM
Hey hey,
I'm having trouble trying to position two horizontal navigation bars along the bottom a netscape browser window. I have it working in IE, and here's the code I'm using to do it:
function getSize()
{
if( isIE )
{
w = document.body.clientWidth;
h = document.body.clientHeight;
h = h - 79 - 27 - 26;
//26 and 27 are the heights of the two nav bars
//79 is the height of a header image at the top of the page
if( h > 0 )
{
contentArea.style.height = h;
}
else
{
contentArea.style.height = 0;
}
}
this is called when the page is loaded and when the window is resized...
contentArea is a div tag that is positioned above the two navigation bars, so essentially, im using the height of contentArea to push the navigation bars to the bottom of the window.
this is the div tag
<div id="contentArea" style="overflow: auto; height: 75%;">
what's the proper way to reference this tag in netscape? would the method i'm using in IE work the same using the window.innerHeight property? any suggestions are greatly appreciated.
I'm having trouble trying to position two horizontal navigation bars along the bottom a netscape browser window. I have it working in IE, and here's the code I'm using to do it:
function getSize()
{
if( isIE )
{
w = document.body.clientWidth;
h = document.body.clientHeight;
h = h - 79 - 27 - 26;
//26 and 27 are the heights of the two nav bars
//79 is the height of a header image at the top of the page
if( h > 0 )
{
contentArea.style.height = h;
}
else
{
contentArea.style.height = 0;
}
}
this is called when the page is loaded and when the window is resized...
contentArea is a div tag that is positioned above the two navigation bars, so essentially, im using the height of contentArea to push the navigation bars to the bottom of the window.
this is the div tag
<div id="contentArea" style="overflow: auto; height: 75%;">
what's the proper way to reference this tag in netscape? would the method i'm using in IE work the same using the window.innerHeight property? any suggestions are greatly appreciated.