I need a way to normalize mouse clicks across different resolution sizes for placement of an image. Currently I’m converting the x/y coordinates to percentages and then convert that percentage to the proper x/y value based on their resolution.

http://pastie.org/235472

This works very poorly, sometimes the images will be 100-150px off. Although the margin of error gets smaller as the resolutions get closer. I don’t know what I’m doing wrong or how to fix it.

Hi,

Not entirly sure what your trying to do or acheive.. I don't think I understand the question correctly but why don't you just get the cursor position on the page and trigger an event on the mouseup/mousedown event.

_-LEX-_

I've done this before eps but I forget how I did it.. I used some sort of library to do it, thats all I remember.. Sorry