hi,
i'm trying to figure out how to reposition an object on a page when a user scrolls the document window. i've created a function that does this when the document loads as well as on resize, however, scrolling has no effect.
the object in question is a footer that should always appear at the bottom of the page no matter what.
the basic logic i'm using is:
~ determine the height of client window.
~ determine height of footer
~ reassign footer top property to clientHgt - footerHgt
again, this works perfectly onLoad and onResize. but when scrolling occurs, the footer simply moves along with the rest of the document.
i realize that my function pretty much duplicates the actions of assigning a static bottom value to the object, in fact it mimics it too well; assigning the bottom also has zero effect when scrolling occurs. i was hoping this function would correct this.
anyone run across this problem before? any suggestions/advice greatly appreciate. thanks!
..:: mirirom ::..
i'm trying to figure out how to reposition an object on a page when a user scrolls the document window. i've created a function that does this when the document loads as well as on resize, however, scrolling has no effect.
the object in question is a footer that should always appear at the bottom of the page no matter what.
the basic logic i'm using is:
~ determine the height of client window.
~ determine height of footer
~ reassign footer top property to clientHgt - footerHgt
again, this works perfectly onLoad and onResize. but when scrolling occurs, the footer simply moves along with the rest of the document.
i realize that my function pretty much duplicates the actions of assigning a static bottom value to the object, in fact it mimics it too well; assigning the bottom also has zero effect when scrolling occurs. i was hoping this function would correct this.
anyone run across this problem before? any suggestions/advice greatly appreciate. thanks!
..:: mirirom ::..