This week's book giveaway is in the General Computing forum. We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line! See this thread for details.
Please let me know if this is the right thread to post this topic.
I have a JSP displaying a image with a button to allow measurement between two points. The cursor needs to be clicked on one point and dragged to the other. While dragging, the cursor changes to the one of windows ( cirlce with cross black line ). Can anyone suggest me a way so that the cursor remains to same while dragging as it was prior to start of drag.
You can use CSS to change the cursor (cursor:crosshair is the one it sounds like you want). I'm not sure off the top of my head if you can add an :active style to the image or if you'll need to use JavaScript onmousedown to activate the style change.
Eric, Thanks for your response. I have a measurement tools, which has its cursor set programatically. The problem I am facing is that when I click on the measurement tool, I get to see that cursor. But when I click and drag for measurement between two points, it changes to cross hair, which I want to keep same as that of the preset cursor.
amol l a lekurwale
Ranch Hand
Joined: Oct 16, 2008
Posts: 30
posted
0
Any updates for the changing cursor at the dragging event?