Results 1 to 2 of 2
Thread: change div height on page scroll
Jul 23, 2008, 15:08 #1
change div height on page scroll
I have a page with two divs positioned on the left and right side of page and they hold a background image. They are set to 100% height -- which is what I want. But when I scroll the page I need the divs to increase in height relative to how much scrolling occurred.
How should I go about this?
They are absolutely positioned now, should I try to add to the scrolled amount to the top property?
Jul 23, 2008, 22:24 #2
I got it working now..
Is this just a shorthand if..else.. statement?
var _docWidth = (document.width !== undefined) ? document.width : document.body.offsetWidth;