Kenshi
-
Posts
2 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Posts posted by Kenshi
-
-
Hi there, I'm having a similar problem.Right now I have a transparant image in a table that is supposed to resize to the height of the browser window. This is what I have right now:function resize() { document.getElementById("doorzichtig").height=screen.availHeight}The resize function is called for in the body tag of the page on the onresize and onload events. Problem is that now matter what I try the height is almost always vastly too large after resize. Does anyone have an idea of what I'm doing wrong?ThanksEdit: I'm using Firefox 1.0.7 as browser
how to get page height and width?
in JavaScript
Posted
The problem seems to be that availHeight appears to a fixed height and doesn't update itself when you resize the browser window.I've been experimenting with the -xx thing, unfortuantely the idea is to have a small copyright text always be at the bottom of the page. If you do a -220 for example it makes the page scrollable, which is what I'm trying to avoid, and if you do -150 (for example) the little copyright blurb is floating more or less near the bottom of the page.Making the page unscrollable would fix it I guess but I'm working on a dreamweaver template so I'd like to have it as open-ended as possible.I am greatly impressed by the speedy reply though