www.webcodingtech.comCoding Technologies for the Web |
Home | | | Php | | | JavaScript | | | SQL | | | HTML | | | Server Admin | | | Tools | ||
![]() | ||||||||||||||
|
|
Change cursor to an Hourglass during function executionNot too long ago I was asked how to change the user's cursor
to an hourglass while the user was waiting for a function to
perform a complex calculation that could take 2 to 3 seconds.
Here's my answer.
To use these functions, simply call them from where the calculation would take place. You can call them from a link or from a form's checkbox etc. on a mouse down event call the cursor_wait() function: onMouseDown="cursor_wait()"
and on the mouse up event call the calc() function: onMouseUp="calc()" .
Here is an example of the whole thing being used.
|
|
http://www.webcodingtech.com