DelphiFAQ Home Search:
General :: Web publishing :: JavaScript :: Document


This list is sorted by recent document popularity (not total page views).
New documents will first appear at the bottom.

Featured Article

How to make a link reposition when the user scrolls


I need to have a 'floating link' - it shall always appear at the same position no matter how far down the user scrolls.


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.

Generated 4:02:38 on Oct 21, 2020