I have made a paint brush type of application using the Canvas Tag . I wanted that when the mouse is on the canvas the Cursor Changes ,
<canvas id="draw" style="cursor: url(image/pencil.cur)">
I have accomplished this but i cant figure out how shall i change the cursor while I Drag the mouse for drawing the image
Use the
:activeCSS pseudo-class to change the cursor when the mouse button is down over the element:Working example: http://jsfiddle.net/nXv63/