Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

123
Vistas
Make mouse cursor custom image change onclick

First, I am building a website on cargo. There's html editor but I don't think it works that well along with the site builder itself.

I want my custom image mouse cursor image change while it's on click. I've got three problems here:

  1. I can't set my default cursor to image. (It was successful in cargo but I don't know how to do this on html editor.)
  2. I am not sure how to change my cursor to other image.
  3. I want this to make it happen on my whole site not just on single text or image.
about 4 years ago · Juan Pablo Isaza
2 Respuestas
Responde la pregunta

0

Here you go! It's quite simple to do:

Just write the cursor property to whatever Selector you want, for the whole WebSite html {...} of course.

html {
  background-color: lightgray;
  cursor: url("https://s3-us-west-2.amazonaws.com/s.cdpn.io/9632/happy.png"), auto;
}
<html>

</html>

There are also a lot of default cursors: You can check them out here: https://codepen.io/chriscoyier/pen/uCwfB

about 4 years ago · Juan Pablo Isaza Denunciar

0

I would simply use a combination of CSS and JavaScript.

CSS class declaring the appropriate cursor definition with a keyword fallback. Then add a simple onmousedown event to fire the addition of a second CSS class that declares an overriding cursor definition. Add a second onmouseout event to remove the second class that was added on click.

/* keyword fallback example: use pointer, if hand.png doesn't exist */
.cursor-hand {
  cursor: url(hand.png), pointer;
}
about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda