:: Forum >>

Change cursor to hourglass

Is there any way to change the cursor to a hourglass after clicking on a tab? I can have a couple of second delay before the ajax call completes and I would like to change the pointer to a hourglass so the user knows something is happening.


Erik Dobrie
Wednesday, October 17, 2007
Take a look at http://www.echoecho.com/csscursors.htm
Using javascript, to show the hourglass when the mouse is over element with ID ElementID, you would write something like:

document.getElementById('ElementID').style.cursor = "wait";

You can use the following to get back the default cursor:

document.getElementById('ElementID').style.cursor = "";
Ankur Motreja
Thursday, October 18, 2007

This topic is archived.

Back to support forum

Forum search