Fixed Layer Manager | JavaScriptSource

Fixed Layer Manager

Tim Tran Mar 23, 2006

General

Emulate CSS "fixed" positioning, which Internet Explorer lacks. Managed layers will disappear while the user is scrolling and reappear only after scrolling stops -- thereby preventing the shearing effect common with other solutions. Heavily commented.


Tweedledee
Tweedledum

Notes

  • Created by: Tim Tran
  • Web Site:
  • Posted: March 23, 2006

While I use terminology common to OOP (e.g. classes, static members, class constants; public, private, and protected methods) in my documentation, these are meant to be interpreted by the programmer on a conceptual level. JavaScript does not have true classes but objects, no protection mechanism for members, and lacks many constructs found in true OOP languages... Please keep this in mind.

Also, I use the term "layer" to mean any HTML document object that has "absolute" positioning (e.g. created by <DIV>, <SPAN>, and most other tags with CSS attibute {postion: absolute;}.

Source Code

Paste this source code into the designated areas.

External file

Paste this code into an external JavaScript file named: fixedLayerManager.js


CSS

Paste this code into your external CSS file or in the <style> section within the HEAD section of your HTML document.


Head

Paste this code into the HEAD section of your HTML document.


Body

Paste this code into the BODY section of your HTML document


Leave a Response

(0 comments)