Javascript/jQuery and mouse interaction

Hi all,

I want to be able to use to javascript or ideally jQuery with mouse interactions.

For example, I want an end user to be able to click on an image and be able to “draw” a box. The area outside the box I want to darken (apply different css styling) and but then use the top left and bottom right coords as part of a ajax call.

How tricky is that?