The Dynamic Layer Object API

The Dynamic Layer Object API (DynLayer) is a lightweight object (weighing in at less than 6 KB) that exposes almost all the properties of DHTML layers for both Netscape 4.0 and IE 4.0. I've found it to be the ideal foundation for nearly every application of DHTML. DynLayer targets layers in a similar manner that I've used pointers to target layers. And it has built in properties and methods which make writing cross-browser DHTML a whole lot easier. Using the DynLayer you can put the differences between the browsers aside and concentrate on more important things: building a dynamic website!

I've left the object open-ended, so you can easily customize it to your needs. You can add more methods or properties onto it, or remove whatever parts you feel you won't need. Many of the next lessons in this tutorial will use the DynLayer as the basis for accomplishing some other task, so it is important that you understand how it works and how to use it.

Things that have changed since the last version:

The Dynamic Layer Object

Home Next Lesson: Geometric Objects
copyright 1998 Dan Steinman