|
April 25, 2000 Stopping a Scroller Tips: April 2000
Yehuda Shiran, Ph.D.
|
|
One of the features of our scroll box is that it stops when the mouse is placed within its boundary. Our scroll box consists of two pages, firstPage and secondPage, placed inside a container, canvas. To pause the scroll while a user mouses over the scrolling box, we added two event handlers to the scrolling pages, onmouseover and onmouseout (all lower case!). These events are defined for both firstPage and secondPage, as either one of them may be exposed at the canvas container. The definitions for the first page are:
and similarly for the second page:
The
The
Learn more about our scroller in Column 32, Scrolling HTML Basics, Part III: The Cross-Browser Version.
People who read this tip also read these tips: Look for similar tips by subject: |