Scroll Object


The Scroll Object allows you to make a layer that has a JavaScript generated scrollbar by which the user can scroll the content of the layer up and down. Though IE 4 has the IFRAME tag which can be used to scroll content there are limitations to it - it can't be transparent, and other layers cannot be positioned over it. Netscape does not have any built-in ability to scroll a layer, so there's no choice but to go with an all JavaScript solution. That's why I built the Scroll Object - it's solves these problems.

First off, take a look at what you can create using this object: demo-frames.html. It is a page with 2 scroll windows where one loads pages into the other to mimic frames.

I've tested this code out on various versions of Netscape 4.0 and 4.5 on Windows, Mac, and Linux, and all seems to be working pretty well except a few of the more advanced functionality on some versions of Mac. I don't have a Mac to work on so I have to rely on input from developers for fixes. Please notify me about any problems you encounter with this object.

There's a lot stuff to explain so I've separated this column into the following sections:

Home Next Lesson: List Object
copyright 1998 Dan Steinman

Casa de Bender

Casa de Bender