R
R
Richard Millie2020-04-22 20:19:23
css
Richard Millie, 2020-04-22 20:19:23

How to change the css style on the site depending on the OS of the user?

How can Windows users follow one cursor and MacOSX users follow another?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
F
flafy4, 2020-04-22
@flafy4

https://developer.mozilla.org/ru/docs/Web/API/Navi...

R
Richard Millie, 2020-04-22
@comewithme38

if ( navigator.platform == "Win32" ) {
// apply css-styling of cursor.
document.getElementById("body").style.cursor = "progress";
}
The possible values ​​are:
MacIntel
MacPPC
Mac68K
Win32
Win16
SunOS
HP-UX
Linux i686
Supported browsers:
Google Chrome
Internet Explorer & Edge
Firefox
Opera
Safari

V
Vyach Gor, 2020-04-23
@sharnirio

look at this question - link posted a script with functionality that suits you

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question