![]() The advantage of this approach is that when you turn off the progress cursor, whatever other cursors may have been defined in your CSS will be restored. If the CSS rule is not powerful enough in precedence to overrule other CSS rules, you can add an id to the body and to the rule, or use! Please don't use jQuery for this in ! There is no reason to include an entire external library just to perform this one action which can be achieved with one line. ![]() The following is my preferred way, and will change the cursor everytime a page is about to change i. See here for browser support as there are some subtle differences depending on browser. Here is something else interesting you can do. Define a function to call just before each ajax call. Also assign a function to call after each ajax call is complete. The first function will set the wait cursor and the second will clear it. ![]() ![]() Setting the cursor for 'body' will change the cursor for the background of the page but not for controls on it.įor example, buttons will still have the regular cursor when hovering over them. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |