Questions tagged [custom-cursor]
71 questions
55
votes
3 answers
CSS change custom cursor image origin (hotspot) to center
I want to use a custom image for a cursor.
This is fine, but from what I can see - the origin (tip of arrow) is by default at the top-left point of my image.
How can I set the origin to be the center of my image.
Here is a demo snippet to…

Danield
- 121,619
- 37
- 226
- 255
52
votes
4 answers
Change the mouse pointer using JavaScript
I wanted to use a script to change the mouse pointer on my website using JavaScript.
It's better done by CSS but my requirement is of a script that can be distributed to many people to embed in the head section of their websites.
Through CSS, this…

Cipher
- 5,894
- 22
- 76
- 112
18
votes
3 answers
assign color to mouse cursor using CSS
How can I assign color to the mouse cursor in a web-page?
Can anyone suggest me a way to do it using any of the technologies e.g. HTML, CSS, JavaScript?

Rajesh Paul
- 6,793
- 6
- 40
- 57
11
votes
1 answer
CSS custom cursor with retina support
I can't find any information about this topic. I want a simple custom cursor with CSS. I have this code right now:
cursor: url('img/cursor_left.png'), auto;
It shows the cursor, nothing wrong. But it's blurry, because it isn't compatible for retina…

Angelo A
- 2,744
- 6
- 28
- 37
6
votes
0 answers
Retina/high-DPI custom cursor in Java?
Is there any way to support high-resolution displays for Java custom cursors? The usual method seems to be using Toolkit:
Toolkit.getDefaultToolkit().createCustomCursor(cursorImage, new Point(), "customCursor");
However, there is very little…

Alexis King
- 43,109
- 15
- 131
- 205
6
votes
1 answer
Get correct cursor in CustomCursor Adapter getView()
I have a custom cursor adapter where each row consists of a check box, text view and button.
The button is initially set as GONE, when the user selects the check box I want the button to display so that the user can click it and delete the…

Roardog
- 139
- 2
- 11
5
votes
2 answers
Grouping data on an ExpandableListView
I have data in an SQLite table in the following format:
id|datetime|col1|col2
1|2013-10-30 23:59:59|aaa|aab
2|2013-10-30 23:59:59|abb|aba
3|2013-10-30 23:59:59|abb|aba
4|2013-10-31 23:59:59|abb|aba
5|2013-10-31 23:59:59|abb|aba
I would like to…

syntagma
- 23,346
- 16
- 78
- 134
4
votes
1 answer
Cross-platform custom cursors for Qt, cursor in resource file
I feel like I'm missing something since I can't see any way to easily do a cross-platform cursor in Qt. That is, I'd like to use a standard cursor editor, or just a common cursor file type, and stick it in the resource file.
I see a couple platform…

edA-qa mort-ora-y
- 30,295
- 39
- 137
- 267
4
votes
2 answers
Custom Cursor in a Swing JDialog
I have a Java Swing application, developed on Mac OS X 10.5 using Java 1.5.
I'm trying to make a custom cursor appear when the user moves the mouse over some text in a dialog. The cursor never changes, though.
When I don't use a JFrame instead of a…

Steve McLeod
- 51,737
- 47
- 128
- 184
4
votes
2 answers
Evolution of my custom cursor code: How do I get it to work in IE?
I have a custom cursor that is using an image. My original code:
cursor:url(../images/drag_mini_bg.png);
I then discovered that Firefox requires you to define a default backup in case the image is not found, and changed it…

froadie
- 79,995
- 75
- 166
- 235
3
votes
0 answers
CSS custom PNG cursor keeps switching
I have this simple custom cursor code;
* {
cursor: url('../../images/site-design/cursor.png'), default;
}
I've tested this on the latest version of Safari and Chrome on OSX. On both browsers the cursor keeps disappearing and reappearing…
user1467267
2
votes
0 answers
How to set a custom cursor in Kivy or Python?
I'm trying to create a custom cursor in a Kivy app. I've looked at approaching it from the angle of tying the position of a Kivy widget to the cursor position. However, this method is extremely finicky and not very clean. If worst comes to worst I…

py_physicist
- 45
- 9
2
votes
2 answers
How To create A Large Size Custom Cursor In Java?
I'm developing a Java Swing app for an award winning password protection system, and I need a large custom cursor [ 80 x 80 ], you might ask why so large, there is an online web demo you may look at to learn why it needs to be so large :…

Frank
- 30,590
- 58
- 161
- 244
2
votes
1 answer
Is There A Cross-Browser Solution For Custom Cursors on HDPI Screens
Is there a solid solution for supporting hi-dpi / Retina custom cursors? It seems there is no standard way to supply standard dpi and hi-dpi graphics for use in the cursor.
Switching the cursor style using media queries is useless because there is…

Undistraction
- 42,754
- 56
- 195
- 331
2
votes
2 answers
How to implement cross-context CSS image cursors?
I'm doing something wrong here, and will appreciate advice on correcting it.
Using the cursor attribute in CSS, with an image url, works but I cannot seem to get it working with anything other than the default context. For example, when I hover over…

Spot
- 7,962
- 9
- 46
- 55