Forum Discussion
KurtMasteller
13 years agoCommunity Member
Change mouse cursor on rollover or use a custom image for cursor
Is it possible to use a custom mouse cursor for an interaction, or change the mouse cursor to an image instead of the pointing hand?
I have been asked to do this and I can't figure out a way to m...
AlexPaniagua
5 years agoCommunity Member
Hola, puedes cambiar el cursor con un accionador de JS
var elementToChange = document.getElementsByTagName("body")[0];
elementToChange.style.cursor = "url('URL-A-LA-IMAGEN-PUEDE-SER-PNG-DE-UNOS-40px'), auto";
para regresarlo al cursor normal:
var elementToChange = document.getElementsByTagName("body")[0];
elementToChange.style.cursor = "default";
Saludos