[thelist] ASP page + Javascript Date = Netscape error

Tyme nopun at bellsouth.net
Mon Oct 1 17:25:11 CDT 2001


repost.

 From the ridiculous to the sublime,
Tyme

----- Original Message -----
From: Tyme <nopun at bellsouth.net>
To: <thelist at lists.evolt.org>
Sent: Thursday, July 26, 2001 12:22 PM
Subject: [thelist] ASP page + Javascript Date = Netscape error


> Reference website: http://www.boilingspringlakes.com/
>
> Have the following code snippet in a .js file:
>
> if (document.getElementById) {
>  var fyear = dateObj.getFullYear();
>  }
>
> if (is_ie4) {
>  var fyear = dateObj.getFullYear() + 100;
>  }
>
> if (document.layers) {
>  var fyear = dateObj.getFullYear() + 100;
>  }
>
> document.write('<p align="center" class="footer">');
> document.write('Last modified: ' + lmonth + ' ' + date + ', ' + fyear +
> '</p>')
>
> --------
>
> For IE4+, works fine on all pages.
> For NN4.5 and NN6, works fine on the .htm pages, but not on the .asp
pages.
>
> Footer is written exactly the same on all pages:
>
> <div align="center" id="footer" class="footer">
> <script language="JavaScript" type="text/javascript"
src="updatefooter.js">
> <!-- "Last update:" footer script -->
> </script>
> </div>
>
> Any idea why?
>
> Tyme







More information about the thelist mailing list