How to make a link reposition when the user scrolls
1 comments. Current rating: (1 votes). Leave comments and/ or rate it.
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.