| JavaScript Document (8) Events (8) ExtJS (7) Strings (3) |
How to make a link reposition when the user scrolls
Question: I need to have a 'floating link' - it shall always appear at the same position no matter how far down the user scrolls.Answer: You need to use a cascading stylesheet to define a positionable page element and then set an onscroll() event handler to reposition this page element.In Netscape and Opera there is no such onscroll event. Instead you could use setInterval and reposition every couple of seconds. Place your link in this positionable page element. Comments:
|