[thelist] ASP page + Javascript Date = Netscape error
Tyme
nopun at bellsouth.net
Thu Jul 26 11:20:51 CDT 2001
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