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


Articles:

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

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.

Generated 12:01:54 on Sep 21, 2017