Welcome to the OzoneAsylum FaqWiki
Frequently Asked Questions
DHTML/JavaScript

How do I keep an element static on the screen when users scroll? Pages that link to <a href="https://ozoneasylum.com/backlink?for=5562" title="Pages that link to How do I keep an element static on the screen when users scroll?" rel="nofollow" >How do I keep an element static on the screen when users scroll?\

There are three solutions:

1. Frames/iframes - avoid if possible - you can get a similar effect using a scroller (see below).

2. CSS - the position: fixed style would appear to be the simplest and cleanest solution (see below).

3. DHTML - see resources below:

---------------------------
Relevant FAQs:

How do I make a cross-browser scroller? - the DHTML scroller solution

Can you explain the position: fixed style? - the CSS solution

---------------------------
Relevant links:

Using JavaScript to statically display elements

http://www.mark.ac/help/sticky.html

http://www.xs4all.nl/~ppk/js/fixedmenu.html

____________________
Emperor

(Added by: Emperor on Wed 26-Feb-2003)

(Edited by: Emperor on Tue 19-Aug-2003)

« BackwardsOnwards »

Show Forum Drop Down Menu