显示网页最后更新时间

2008-09-25 13:48:00 | 【

网页最后更新时间:

该代码可以简单的显示当前所访问的网页的最后更新时间

查看全部代码 View Code

在<body>区添加以下代码:

<div align="center">
  <center>
  <table border="0" width="179" height="87" cellspacing="0" cellpadding="0" bgcolor="#336699">
    <tr>
      <td width="179" height="87" style="cursor:hand" onclick=alert("网页最后更新时间\n"+document.lastModified)>
        <p align="center"><font size="2" face="Tahoma" color="#FFFFFF">
网页最后更新时间:<br>
<script language="javascript">

        /*****************************************************
         *  Share JavaScript (http://www.ShareJS.com)
         * 使用此脚本程序,请保留此声明
         * 获取此脚本以及更多的JavaScript程序,请访问 http://www.ShareJS.com
         ******************************************************/
    
document.write(document.lastModified);
</script></font></p>
      </td>
    </tr>
  </table>
</center>
</div>

下载"显示网页最后更新时间"

  • 本地下载
  • 本地下载2
上一篇: 显示年月日周  
下一篇: 标题显示时间

相关资源