Hi all,
I'm wondering if someone might know why the following displays differently when run locally versus when it is run on the host server. It only happens when using Netscape 7; I.E. displays it properly (although in a different form).
I've had the following script on a site for quite some time but recently changed hosts and I have to assume it has something to do with that.
HTML Code:
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
var b = "Page last updated on " + document.lastModified;
var j = b.length-8;
document.writeln("<center>");
document.write(b.substring(j, 0));
document.writeln("</center>");
// End -->
</SCRIPT>
Locally it displays as:
Page last updated on Tuesday, August 3, 2004
But when run from the host server it displays as:
Page last updated on Tue, 03 Aug 2004 23:3
Using I.E. 6, the displays are identical, locally and from the server, except that it displays in the following form:
Page last updated on 08/03/2004
Anyone have any idea why the differences?
|