views:

135

answers:

3

As the title says.

I would like to change the hotspot of a mouse pointer, which we've changed the icon using a .cur file, to be in the bottom right of the image, rather then the top left.

Is this possible?

+2  A: 

It's not possible, and I'm glad - I think you'd only frustrate your users with this.

Edit: I was wrong - I didn't think this was possible - I still don't think you should do it though.

Galwegian
Not helpful, I'm assuming the op has good reasons for doing this.
Robert Gould
+3  A: 

I have not tested it, got it from developer.mozilla.org:

Support for the CSS3 syntax for cursor values got added in Gecko 1.8beta3; it therefore works in Firefox 1.5. It allows specifying the coordinates of the cursor's hotspot, which will be clamped to the boundaries of the cursor image. If none are specified, the coordinates of the hotspot are read from the file itself (for CUR and XBM files) or are set to the top left corner of the image. An example of the CSS3 syntax is:

cursor: url(foo.png) 4 12, auto;

Link to CCS3 cursor

some
How would you set the co-ordinates in a CUR file?
Bravax
According to wikipedia it is in the headerof the ICO file: http://en.wikipedia.org/wiki/ICO_(icon_image_file_format)
some
Awesome, I'll look into this. thanks!
Bravax
Note that the last right parenthesis is part of the url.
some
A: 

You can't. And as most people here I'd tell you to not do it even if you could...

However, I could imagine something like this for very specific cases like the page of some artist, or for a game cursor, or a sort of 3D-like map with the cursor pointing down. Now if you really need a special cursor for a media oriented site, as opposed to an information site, I'd hide the cursor, with a blank cursor file and use some Javascript to attach a floating image over the cursor so it "looks like" the hot spot is someplace else.

Of course your sites usability and compatibility will go way down, but the solution above is if you really need to take the creative liberty, and your users are open minded to this sort of stuff.

Robert Gould