PDA

Click to See Complete Forum and Search --> : how do i center the mouse cursor with vbs or js


stefank
Aug 29th, 2000, 04:04 AM
can anybody tell me how to center the mouse cursor in the center of the IE5 window, document, frame whatever. as far as i can tell all the event objects for the mouse are read only. can anybody confirm this or offer a solution?

thanks

makai
Aug 31st, 2000, 11:31 PM
this is from the script reference guide at Netscape

http://developer.netscape.com/docs/index.html?cp=dev01tdoc

screenX
Number specifying the cursor's horizontal position in pixels, relative to the screen.Property of event

Implemented in JavaScript 1.2



Security
Setting this property requires the UniversalBrowserWrite privilege. For information on security, see the Client-Side JavaScript Guide.

See also event.screenY


--------------------------------------------------------------------------------

screenY
Number specifying the cursor's vertical position in pixels, relative to the screen.Property of event

Implemented in JavaScript 1.2

Security
Setting this property requires the UniversalBrowserWrite privilege. For information on security, see the Client-Side JavaScript Guide.

See also event.screenX