The best way to find out if everyone aggres with you (and have them even consider your suggestion)
Is to produce some sample HTML that deponstrates the resultes of using each method.
:-)
----- Original Message -----
Sent: Friday, July 13, 2001 12:57 PM
Subject: [Dynapi-Dev] mouse.js bug on DynAPI?

I found on IE5.5 WIN32 (I don't know on other platform on IE and other IE versions) that mouse.js mesure the position of the mouse relative to the layer with
 
evt.x=is.ie?e.x-evt.src.getPageX():e.layerX
evt.y=is.ie?e.y-evt.src.getPageY():e.layerY
 
that returns values of x,y bigger of 0 when mouse on the boder of the layer so I think the correct way is that:
 
evt.x=is.ie?e.x-(evt.src.getPageX()-(document.body.offsetLeft-document.body.clientLeft)):e.layerX
evt.y=is.ie?e.x-(evt.src.getPageX()-(document.body.offsetLeft-document.body.clientLeft)):e.layerY
 
It's that ok?
 
ENJOY!
Gabriel Suchowolski / power[z]one

Reply via email to