Archive for November, 2007

266 Part III . Document Objects Reference moveBy(deltaX,deltaY) (Web design software)

Tuesday, November 20th, 2007

266 Part III . Document Objects Reference moveBy(deltaX,deltaY) moveTo(x,y) Returns: Nothing. Compatibility NN2 NN3 NN4 . NN6 . IE3/J1 IE3/J2 IE4 . IE5 . IE5.5 . In IE4+ and NN4+, JavaScript can adjust the location of a browser window on the screen. This applies to the main window or any subwindow generated by script. Netscape regards the possibility of a window moved out of screen view as a potential security hole, so signed scripts are needed in NN4+ to move a window off screen. You can move a window to an absolute position on the screen or adjust it along the horizontal and/or vertical axis by any number of pixels, irrespective of the absolute pixel position. The coordinate space for the x (horizontal) and y (vertical) position is the entire screen, with the top-left corner representing 0,0. The point of the window you set with the moveBy()and moveTo() methods is the very top-left corner of the outer edge of the browser window. Therefore, when you move the window to point 0,0, that sets the window flush with the top-left corner of the screen. This may not be the equivalent of a truly maximized window for all browsers and operating systems, however, because a maximized window s coordinates may be negative by a handful of pixels. If you try to adjust the position of the window in NN4 such that any edge falls beyond the screen area, the window remains at the edge of the screen unless you are using a signed script and have the user s permission to adjust the window partially or completely off screen. Moving the only visible browser window entirely off screen is dangerous because the user has no way to get it back into view without quitting and relaunching the browser. The difference between the moveTo()and moveBy() methods is that one is an absolute move, while the other is relative with respect to the current window position. Parameters you specify for moveTo()are the precise horizontal and vertical pixel counts on the screen where you want the upper-left corner of the window to appear. In contrast, the parameters for moveBy()indicate how far to adjust the window location in either direction. If you want to move the window 25 pixels to the right, you must still include both parameters, but the y value will be zero: window.moveBy(25,0) To move to the left, the first parameter must be a negative number. On the CD-ROM Example (with Listing 16-24) on the CD-ROM Related Items: window.outerHeight, window.outerWidth properties; window.resizeBy(), window.resizeTo() methods. windowObject.moveBy()
If you are in need for cheap and reliable webhost to host your website, we recommend http web server services.

Apache web server tutorial - 265Chapter 16 .Window and Frame Objects // function

Tuesday, November 20th, 2007

264 Part III (Web server on xp) . Document Objects Reference GetAttention()

Monday, November 19th, 2007

263Chapter 16 .Window and Frame Objects find([ searchString [,

Monday, November 19th, 2007

262 Part III . Document Objects (Free web servers) Reference frame

Sunday, November 18th, 2007

Web hosting comparison - 261Chapter 16 .Window and Frame Objects On the

Sunday, November 18th, 2007

260 Part III . Document Objects Reference (Disney web site) confirm( message )

Saturday, November 17th, 2007

259Chapter 16 .Window and Frame Objects On (Mac os x web server) the

Saturday, November 17th, 2007

258 Part III . Document Objects Reference On (Web design software)

Friday, November 16th, 2007

257Chapter 16 .Window and Frame Objects Note NN6 (Free web hosts)

Friday, November 16th, 2007