Reputation: 40207
I've created a .png file I'd like to use as a custom cursor on a specific element with class "next".
I'm using this code to no avail. Anything I'm missing?
$('.next').hover
(
function(e)
{
//$(this).css('cursor','all-scroll'); //WORKS!
$(this).css('cursor','url(img/right-pointer.png)');
});
Upvotes: 2
Views: 6217
Reputation: 35407
Why don't you use the following CSS:
.next:hover { cursor:url(img/right-pointer.png); }
Upvotes: 6