views:

193

answers:

3

Hi All,

I am using asp.net 3.5 and C#.

I want to change my mouse cursor similar to this site

http://dummyblogtrix.blogspot.com/

How can I do the same ?

Please help.

Thanks in advance

+1  A: 

Use the CSS cursor attribute

CSS Cursor

bechbd
+2  A: 

Don't. Just Don't.

Or set the cursor style on the body tag.

In order to set a 'special' non-windows icon, you have to reference a URL to a cursor icon (.cur).

body
{
   cursor:url(customCursor.cur);
}

However, I highly recommend you do not set a custom cursor. It will only serve to annoy users.

I do believe this will cause all other pointers to be overridden. I.e. your anchor tags would also use the custom icon. If you wanted to keep the standard icon, you'd have to set the cursor on all the other standard html tags, i.e.:

a
{
   cursor:pointer;
}
GenericTypeTea
I want to use the same pointer icon with custom color, i have few images, I convert it to .cur extension but it's not working.
Zerotoinfinite
What's the CSS you are using? Can you post it up?
GenericTypeTea
In the body tag I am using style attribute like style="cursor: url(button1.cur);"
Zerotoinfinite
And where does the cursor file sit in the file structure? Is it in the same folder/directory as the css file?
GenericTypeTea
Yes, it's in my folder directory.
Zerotoinfinite
...folder directory? What does that mean? Explain your folder structure.
GenericTypeTea
A: 

W3C

Justin
Was the link to the W3C section on the `cursor` property really voted down??
Justin