282 Part III . Document Objects Reference Unwanted

282 Part III . Document Objects Reference Unwanted User Scrolling Many Windows-compatible personal computers ship with a mouse that includes a scroll wheel that is activated by pressing down on the wheel and spinning the wheel. Be aware that even if your page design loads into frames or new windows that intentionally lack scrollbars, the page will be scrollable via this wheel if the document or its background image are larger than the window or frame. Users may not even be aware that they have scrolled the page (because there are no scrollbar visual clues). If this affects your design, you may need to build in a routine (via setTimeout()) that periodically sets the scroll of the window to 0,0. To scroll upward, use a negative value for the second parameter: window.scrollBy(0, -window.innerHeight) Scrolling the document in the Macintosh exhibits some buggy behavior. At times it appears as though you are allowed to scroll well beyond the document edges. In truth, the document has stopped at the border, but the window or frame may not have refreshed properly. The window scroll methods are not the ones to use to produce the scrolling effect of a positioned element. That kind of animation is accomplished by adjusting style position properties (see Chapter 31). On the Example (with Listings 16-34 and 16-35) on the CD-ROM CD-ROM Related Items: window.pageXOffset, window.pageYOffset properties; window.scroll() method. setCursor( cursorType ) Returns: Nothing. NN2 NN3 NN4 NN6 IE3/J1 IE3/J2 IE4 IE5 IE5.5 Compatibility . The NN6 window.setCursor() method is an alternative to the cursor style sheet attribute. In the meantime, NN6 user interface theme authors have been using it, and you can experiment with it, too. The method requires one parameter, a string name of one of the accepted cursor types. Recognized cursor types are as follows: windowObject.setCursor()
Searching for affordable and reliable webhost to host and run your web applications? Go to our java web server services and you will be pleased.

Leave a Reply