¿Cómo puedo cambiar el estilo del cursor con jQuery?


Quiero cambiar el estilo del cursor como si estuviera pasando por un enlace. ¿Cómo hago esto?

Author: user730569, 2011-05-09

4 answers

Modifique el valor CSS cursor utilizando el método css()

$('#selector').css('cursor', 'pointer');

Demo: http://jsfiddle.net/jomanlk/H6Nta /

 50
Author: JohnP,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2011-05-09 05:23:13

Puedes jugar con esto

$('#divid').css('cursor','default');

Para puntero

$('#divid').css('cursor','pointer');

Api

Http://api.jquery.com/css/

 5
Author: kobe,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2011-05-09 05:23:30

Usando css

Http://www.echoecho.com/csscursors.htm

Lea aquí para diferentes estilos de cursor

Y aplicarlo

$('#selector').css('cursor', 'value');
 4
Author: Gowri,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2011-05-09 05:25:50

Los cursores son manejados por CSS. Necesitas algo como

$('#elementid').css('cursor', 'pointer');

O para navegadores IE antiguos

$('#elementid').css('cursor', 'hand');
 1
Author: Codemwnci,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2011-05-09 05:24:18