CD-264 Part VI . Appendixes Listing 16-9 (continued)

CD-264 Part VI . Appendixes Listing 16-9 (continued) // restore window to original dimensions function restore() { window.outerWidth = originalWidth window.outerHeight = originalHeight }

Setting Inner Sizes




Setting Outer Sizes







As the document loads, it saves the current outer dimensions in global variables. One of the buttons restores the windows to these settings. Two parallel sets of buttons set the inner and outer dimensions to the same pixel values so that you can see the effects on the overall window and document area when a script changes the various properties. Because Navigator 4 displays different-looking buttons in different platforms (as well as other elements), the two buttons contain script instructions to size the window to best display the window contents. Unfortunately, no measure of the active area of a document is available, so that the dimension values were determined by trial and error before being hard-wired into the script. windowObject.innerHeight
Note: In case you are looking for affordable and reliable webhost to host and run your j2ee application check Vision J2ee Web Hosting services.

Leave a Reply