JavaScript Hell
I am trying to implement something in a web application whereby specific content (which includes images and text) exists inside a "box" that's about 2/3's of the width of the browser and about 90 pixels high. This box should stay at the bottom of the browser no matter what.
If the page has one word on it (and therefore doesn't need to scroll) the box should be at the bottom of the browser.
If the page has 1000 paragraphs of text on it, the box should stay "docked" at the bottom of the browser window as the user scrolls down and reads (the box should appear on TOP of the page's content).
I have tried determining the size of the browser and getting a simple label to move as I scroll using the onscroll event in the body tag but the label doesn't go anywhere (even though my javascript method IS getting called).
Can anyone help me or perhaps point me in the direction of a working implementation of this?
Thanks!