Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within HTML Pages with CSS and JavaScript
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Jeanne Boyarsky
Ron McLeod
Paul Clapham
Liutauras Vilda
Sheriffs:
paul wheaton
Rob Spoor
Devaka Cooray
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Carey Brown
Frits Walraven
Tim Moores
Bartenders:
Mikalai Zaikin
Forum:
HTML Pages with CSS and JavaScript
How to do Hourglass cursor in Javascript?
Herbert Kornfeld
Ranch Hand
Posts: 32
posted 20 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
How can I program an Hourglass cursor with Javascript - you know - if something is going to take a long time - you want to switch to an Hourglass cursor and then back to a normal cursor when the process has completed.
Thanks
Mani Ram
Ranch Hand
Posts: 1140
posted 20 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
The code
document.body.style.cursor = 'wait';
will change the cursor style to the hourglass
And the code
document.body.style.cursor = default';
will change the cursor back to the normal style.
Use these codes before calling the long process & after the process is over.
Mani
Quaerendo Invenietis
Herbert Kornfeld
Ranch Hand
Posts: 32
posted 20 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Thanks!!!
Don't get me started about those stupid
light bulbs
.
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
how to display an houglass cursor?
Mouse busy
Hourglass while the jsp page loads
How do you show a submit wait cursor
Cursor Style
More...