Thursday, March 24, 2011

Custom Cursor for your website

What happens to the mouse cursor when a user clicks on a button?
NOTHING!!!!!
Here is some code to change that.

style="cursor:pointer;cursor:hand"
style="cursor:crosshair"
style="cursor:text"
style="cursor:wait"
style="cursor:move"
style="cursor:help"
style="cursor:e-resize"
style="cursor:w-resize"
style="cursor:n-resize"
style="cursor:s-resize"
style="cursor:ne-resize"
style="cursor:nW-resize"
style="cursor:se-resize"
style="cursor:sw-resize"

Just add any of the above code in the code of say a button or <p> or any other tag and the cursor would change. Just look at the example given above.

No comments:

Post a Comment