<SCRIPT Language="JavaScript">
<!--
if (document.all)
{
document.write("<BR>文件建立日期:",document.fileCreatedDate);
document.write("<BR>文件大小:",document.fileSize,"bytes");
document.write("<BR>文件修改日期:",document.fileModifiedDate);
document.write("<BR>存取日期:",document.lastModified);
}
// -->
</SCRIPT>
<!--
if (document.all)
{
document.write("<BR>文件建立日期:",document.fileCreatedDate);
document.write("<BR>文件大小:",document.fileSize,"bytes");
document.write("<BR>文件修改日期:",document.fileModifiedDate);
document.write("<BR>存取日期:",document.lastModified);
}
// -->
</SCRIPT>
<img src="file:///D:/dob.gif" onclick="alert(this.fileModifiedDate)">
因为我是需要直接在网页显示另一个文件的修改日期的...........要是在网页上显示,一般显示修改地日期都是当前日期
因为我们所打开地网页等等看到地都是先进IE缓存如果要是在服务器上返回调用文件正确地修改时间
则用asp地XXXXXXX属性来显示地javascript无法实现这样功能