Forum Moderators: not2easy

Message Too Old, No Replies

Cursor style

After submit button pressed

         

Alternative Future

12:50 pm on Sep 2, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi all,

The effect I am trying to create is when the user has pressed the/a submit button on the page the cursor changes to the cursor:wait (egg timer on ie) and maintains this state till the page has gone from view. I can partially do what I am after by using the onclick event this.style.cursor = 'wait' BUT when the user moves their mouse away from that element it looses its current state of wait and returns to the default cursor.

Anyone know off hand how to get this working?

Many thanks,

-George

moltar

12:52 pm on Sep 2, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Set it onto the <body> element.


<body id="body">
....
document.getElementById('body').style.cursor = 'wait';

Alternative Future

12:53 pm on Sep 2, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi moltar,

Can this be achieved using the DOM like this.document.body.style.cursor = 'wait' or something similar?

-George

moltar

1:36 pm on Sep 2, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



ya, i goes like this:

document.body.style.cursor = 'wait'