Paul Makepeace wrote:
> Thought y'all'd get a kick out of this,
> 
> http://www.knowyourtype.com/mbti.html
> 
> Upper right corner. Oh, man.

What is it you see? I saw nothing (NS with JS off), 2002 (MSIE 5.5), and
2002 (NS 4.73 with JS on). Did you see 19102 or something, maybe?

Looks like it's probably this bit of code:

        var year=time.getYear();

        if ((navigator.appName == "Microsoft Internet Explorer") && (year <
2000))          
        year="19" + year;
        if (navigator.appName == "Netscape")
        year=1900 + year;
        document.write(lmonth + "&nbsp;");
        document.write(date + ",&nbsp;" + year);

>From what I recall, it was a poorly documented part of JavaScript, with
Microsoft and Netscape returning different values. IIRC, Microsoft returns
..., 97, 98, 99, 2000, 2001, 2002, ... while Netscape returns ..., 97, 98,
99, 100, 101, 102, ... . I also seem to recall that there is another
interface to fetch the date which is better documented and which is
recommended, but am too lazy to go and look it up.

Whether including the current date on a web page in this manner serves any
useful purpose or not is beyond the scope of this discussions.

Cheers,
Philip
-- 
Philip Newton <[EMAIL PROTECTED]>
All opinions are my own, not my employer's.
If you're not part of the solution, you're part of the precipitate.

Reply via email to