4

Possible Duplicate:
Custom cursor interaction point - CSS / JQuery

I am changing the image of the mouse pointer using the CSS cursor property ("cursor: url(images/target.png), crosshair;") and have noticed when a user clicks it takes the point from the top left of the image.

How could I change that to a given x & y point within the cursor image?

edit: Custom cursor interaction point - CSS / JQuery gave me the answer (I guess it makes this a duplicate question) - thanks "mu is too short"

Community
  • 1
  • 1
Brian Barnes
  • 1,009
  • 7
  • 15

1 Answers1

0

Just an idea (dunno if it works): Have you considered using a larger image with some transparent space on the side where you need the offset?

kaiser
  • 21,817
  • 17
  • 90
  • 110
  • no I haven't, but wouldn't that make the cursor image further away from the top right? – Brian Barnes Aug 18 '11 at 02:38
  • sorry made a mistake in my question, it takes it from the top left, not top right, so if you add more transparency to the image, at best the image is in the same position, at worst, the image is further away from the click point. – Brian Barnes Aug 18 '11 at 02:48
  • Could you post the image incl. a border? – kaiser Aug 18 '11 at 03:26