Print

Print


From the "relentless attention to detail" department:

The Microsoft Y2K page uses Javascript and checks whether the browser is
IE4 or Netscape.  It does this because Microsoft and Netscape have
different implementations of the Cascading Style Sheets (CSS)
specification.  In Microsoft's defence, they provide BOTH a Microsoft style
sheet and a Netscape style sheet for the page.  However,  they don't check
to see if you are using an older version of Netscape.  Arguably, they have
gone the distance in being Netscape compliant on their page.

For true diehards, the Javascript is attached below.

-Steve Song


At 10:40 AM 98/04/16 , [log in to unmask] wrote:
>Chris writes:
>
>> I say apparently, because as a Netscape user, I am unable
>> to see the page.
Jeff replies:
>
>I had no problems using Netscape.  And I saw no unusual java script
>embedded in the html.
-----------------------------------------
<!cript LANGUAGE="JavaScript">
<!--
        if (navigator.userAgent.indexOf("MSIE 4") != -1)
                        {
                document.write("<LINK REL=STYLESHEET HREF=\"/ithome/iestyle.css\"
TYPE=\"text/css\">");
                document.write("<STYLE>");
                document.write("<<!-->");
                document.write("<A:hover        {color: FF0000}>");
                document.write("<//-->>");
                document.write("</STYLE>");
                        }
        else
                        {
        if (navigator.appName == "Netscape")
                        {
                document.write("<LINK REL=STYLESHEET HREF=\"/ithome/nsstyle.css\"
TYPE=\"text/css\">");
                        }
        else
                        {
                document.write("<LINK REL=STYLESHEET HREF=\"/ithome/iestyle.css\"
TYPE=\"text/css\">");
        }
                        }
//-->
</SCRIPT>



______________________________________________________________
Steve Song <[log in to unmask]>
Unganisha (Connectivity) Project <http://www.idrc.ca/unganisha>
International Development Research Centre
P.O. Box 8500, Ottawa, Ontario, Canada, K1G 3H9
Tel. +1 613 236 6163 x2268  Fax +1 613 567 7748