I'm currently working on a project that involves elements where a custom mouse pointer will be used. The code that I'm using for that function is simple just:
.hand {
cursor:url(/images/cursor1.gif);
}
Now to my question: - I was just wondering (as the title says) if there are anyway that I can make the cursor change to cursor2.gif when you click inside the div-class "hand" (?).
Right-click the “Start” button and select “Control Panel“. Select “Appearance and Personalization“. Choose “Specify single- or double-click to open“. In the “Click items as follows” section, choose between “Single click to open an item” or “Double-click to open an item“.
Open the Control Panel. In the Control Panel, double-click the Mouse icon. In the Mouse Properties window, click the Buttons tab and select the action for each of the buttons.
Use the :active
psuedo-class:
.hand:active {
cursor: url('/imgages/cursor1.gif');
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With