From: Daniel H. <dhe...@ya...> - 2000-11-09 11:59:00
|
Thanks > e.x and e.y are the positions of the mouse relative to the e.src object. > > e.pageX and e.pageY are the exact locations of the mouse relative to the > upper left corner of the document window (not the browser window). It seems that pageX & pageY have different behavior in IE4 and IE5.0 when the page is scrolled. In IE5.0 pageX & pageY return the mouse position within the window see attached file: this page dispaly the different x,y from the event : pageX/Y, e.x/y, e.orig.x/y .... on IE4 when the page is scrolled down I don't know how to get the window x & y mouse position. On NS it is eratic with a very slow setHTML() I come back to the question : how to get the true x,y window position so that I can display something nearby the mouse position in any situation (was the mouse on a div or not) Thanks for help. Daniel. > > Hope this helps. > ----- Original Message ----- > From: "Daniel HERLEMONT" <dhe...@ya...> > To: <dyn...@li...> > Sent: Wednesday, November 08, 2000 5:43 PM > Subject: [Dynapi-Help] Document events. > > > > Ok this is nearly perfect. > > > > But when I get the e.x & e.y I am not what I expected : that is the > current > > position of the mouse on the screen > > (I would like to display on the fly popup hints ... at the current mouse > > position) > > > > What are the exact definition of > > e.x, e.y > > e.pageX and e.pageY > > > > Maybe it is somewhere in the doc ? > > > > Thanks. > > > > > > > > > > > > > > _______________________________________________ > > Dynapi-Help mailing list > > Dyn...@li... > > http://lists.sourceforge.net/mailman/listinfo/dynapi-help > > _______________________________________________ > Dynapi-Help mailing list > Dyn...@li... > http://lists.sourceforge.net/mailman/listinfo/dynapi-help > |