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