# Change mouse pointer

**URL:** <https://www.ruby-forum.com/t/change-mouse-pointer/117928>\
**Category:** Rails\
**Created:** [October 22, 2007, 3:26pm UTC](https://www.ruby-forum.com/t/change-mouse-pointer/117928 "2007-10-22T15:26:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![crazybass](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/eb9ed0/32.png) [@crazybass](https://www.ruby-forum.com/u/crazybass)\
**Post date:** [October 22, 2007, 3:26pm UTC](https://www.ruby-forum.com/t/change-mouse-pointer/117928/1 "2007-10-22T15:26:52Z")

</div>

I want to change the normal mouse ‘arrow cursor’ to a ‘busy cursor’ and  
back again.  
Anyone can help me to do that using rails?

Thanks,

regards

---

<div class="post-metadata">

**Author:** ![crazybass](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/eb9ed0/32.png) [@crazybass](https://www.ruby-forum.com/u/crazybass)\
**Post date:** [October 22, 2007, 4:41pm UTC](https://www.ruby-forum.com/t/change-mouse-pointer/117928/2 "2007-10-22T16:41:34Z")

</div>

On 10/22/07, Paulo C. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> I want to change the normal mouse ‘arrow cursor’ to a ‘busy cursor’ and  
> back again.  
> Anyone can help me to do that using rails?

You don’t need Rails to do it. You can use javascript to change the  
class  
(CSS) attribute in your tag according to event.

ex:

# On event X → Change CSS class with cursor type 1.

# On event Y → Change CSS class with cursor type 2.

On Load (ajax) → use “busy”  
When complete → use “arrow”

Atenciosamente,

J. Luiz Coe  
removed\_email\_address@domain.invalid

> **[Tecnologia, carreira, liderança](https://joseluizcoe.com/)**
>
> Esse blog é sobre tudo que eu estou estudando, vivendo, aprendendo e não consigo guardar só pra mim. Me siga nas redes, vamos conversar!

Todas as informaÃ§Ãµes contidas neste e-mail sÃ£o confidenciais e devem ser  
usadas apenas pelo seu destinatÃ¡rio.
