I think I have tried different methods suggested all over the internet but nothing worked. This is my current css code:
div {
cursor: url(images/zoomin.cur), auto;
}
It works fine except in IE...
I think I have tried different methods suggested all over the internet but nothing worked. This is my current css code:
div {
cursor: url(images/zoomin.cur), auto;
}
It works fine except in IE...
Because different browsers treat relative URI's differently, the cursor style allows a list of urls. You can have one path that works for IE and one that works for other browsers:
In my setup, the first url works for IE11 (and earlier) because the script that uses the cursor is in 'cgi-bin/app' while the .cur and .css files are in 'app/images'. IE uses the document location as the base, so I need to add more path information to locate the cursor file. The second url works in Firefox because .cur and .css are in the same location and Firefox uses the .css location as the base, so additional path info is not needed.
I solved in this way for the grab cursor in Internet Explorer, citing the @JasonGennaro's answer:
Files tree:
Good references:
Working Demo:
this one work for me proved in IE10, INDEXED in the of index.html( you must use absolute routes)
I tried using .ani and .gif and it is working. It should go like this:
This css works for my website in chrome, firefox and IE.
Unfortunately,
cursor
is plain buggy in IE, at least until and including 8http://reference.sitepoint.com/css/cursor
You may want be able to use a
conditional comment
to target IE and then feed it a modified style rule with a differenturl
.from : http://www.w3schools.com/cssref/pr_class_cursor.asp