Inside Technique : Auto-Scrolling Viewports
Continuing with our series of articles demonstrating DHTMLLib, the cross-browser scripting library, we demonstrate how to use DHTMLLib to create an auto-scrolling viewport. This article builds on last weeks script for creating a user-scrolled viewport to extends it to create scrolling marquee.
To quickly recap our explanation of a viewports from last weeks article, examine the image below.
A viewport provides a window, or view, over the underlying content. By moving the underlying contents top and left position, you
can simulate scrolling. Last week we showed you how to add scrollbar widgets to manually scroll the content. This week we show you
how to use a timer to automatically scroll the contents.
Before continuing, we recommend you view a demonstration of the Auto-scrolling marquee. The demonstration will appear in its own popup window. After the demonstration continue and see how we created the Auto-scrolling marquee.
© 1997-2000 InsideDHTML.com, LLC. All rights reserved.