## Strona zależna od systemu operacyjnego

Skrypt ładuje stronę przystosowaną do wyświetlania w systemie operacyjnym użytkownika - Windows 95, Macintoshu, Windows 3.1 i pozostałych.

Bez ilustracji.

Skopiuj przykładowy kod

    <SCRIPT>
    <!--
    /* (C)1998 Jonathan Hollingshead.  http://members.tripod.com/~the64center/  This copyright must be left unaltered to be used. This code loads different pages depending on OS. To use the code, follow the instructions below. First, insert the code into the head of a blank document. (The document will never be seen.) Secondly, make a page for Windows 95 and Other Windows, or one for all. Thirdly, make a page for Macintosh and other OS's. Fourthly, change the win95.html and win31.html to the document you made for Windows or, if you made two, win95.html to the one made for Windows 95, and win31.html to the one made for other Windows. Fithly, change the mac.html to the document you made for Macintosh. Finally, change other.html to one of the documents above, or make another one for it. Once you are finished with the instructions, you can delete them.
    */
    {
      if((navigator.userAgent.indexOf('Win') != -1) &&
      (navigator.userAgent.indexOf('95') != -1))
        { window.location.href="win95.html"; }
      else if(navigator.userAgent.indexOf('Win') != -1)
        { window.location.href="win31.html"; }
      else if(navigator.userAgent.indexOf('Mac') != -1)
        { window.location.href="mac.html"; }
      else { window.location.href="win.html"; }
    }
    //-->
    </SCRIPT>