1''
1''

Reputation: 27095

Display wait cursor as page element

I'd like to display the "wait cursor" for the user's operating system as a static element of my webpage. For instance, for Windows 7, I'd like to put this animation at a particular location on the page:

enter image description here

Is there a way to choose the animation based on the user's operating system, rather than using a single GIF like the one above for all operating systems?

Note: I don't want to change the user's actual cursor.

Upvotes: 1

Views: 214

Answers (1)

raam86
raam86

Reputation: 6871

You can use Navigator object

    if(navigator.platform  == "Win32"){ //for windows
    ///Codez
    }

platform is a string with one of the following values: "Win32", "Linux i686", "MacPPC", "MacIntel", or other.

MDN

Upvotes: 1

Related Questions