📄 js54.htm
字号:
<!--Saved from《网页设计师》pageone.yeah.net,作者:阿捷ajie@nease.net-->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="keywords" content="Javascript,Javascript,Javascript,Javascript,Javascript">
<!-- 以下代码是设定此页的超链接样式 -->
<style type="text/css"><!-- A:link {text-decoration: none; color:#000000}
A:visited {text-decoration: none; color: #000000}
A:active {text-decoration: none; color: #FF0000}
A:hover {text-decoration: underline; color: FF0000}
body{font-size=9pt}
TH{FONT-SIZE: 9pt}
TD{ FONT-SIZE: 9pt}
-->
</style>
<script LANGUAGE="JavaScript">
<!--
var cookiename="javastrack";
function getCookie(c_name)
{
c_string=c_name+"=";
if(document.cookie.indexOf(c_string)==-1)
{return "";}
strbegin = (document.cookie.indexOf(c_string)+c_string.length);
strend = document.cookie.indexOf(";", strbegin);
if (strend == -1)
{strend = document.cookie.length;}
return (unescape(document.cookie.substring(strbegin, strend)));
}
function setCookie(c_name,value,exp)
{
c_string=c_name+"=";
document.cookie=c_string + escape(value)+"; expires=" + exp.toGMTString(); //add new property
}
function removeCookie(c_name)
{
setCookie(c_name,"",new Date(0));
}
function checkUpdate() //Update check function
{
var exp=new Date(); //get current date
var plusoneyear=exp.getTime()+(365 * 24 * 60 * 60 * 1000); // 设置1年的cookies时间
exp.setTime(plusoneyear);
var last=getCookie(cookiename);
var str=document.lastModified;
var update=new Date(str.substring(6,8),str.substring(0,2),str.substring(3,5),str.substring(9,11),str.substring(12,14),str.substring(15,17));
if(last!=0) // 以前已经访问过的页面
{
if(update.getTime()>last)
{
// 自由改动下面一行的提示信息。
window.alert("您上次光临后此页已经更新了!");
}
}
else // 首次光临页面显示的信息
{
//自由改动下面一行提示的信息内容。
window.alert("此页已经更新!");
}
setCookie(cookiename,update.getTime(),exp); // set new last seen revision date cookie
}
//-->
</script>
<title>页面更新跟踪器</title>
</head>
<body bgcolor="#FFFFFF" onLoad="checkUpdate();">
<table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr>
<td width="50%" bgcolor="#006DA2"><!--webbot bot="ImageMap" rectangle="(8,2) (105,34) http://www.pageone.yeah.net" src="../images/jlogo3.GIF" alt="网页设计师" border="0" startspan --><MAP NAME="FrontPageMap"><AREA SHAPE="RECT" COORDS="8, 2, 105, 34" HREF="http://www.pageone.yeah.net"></MAP><a href="../_vti_bin/shtml.exe/js/js54.htm/map"><img ismap usemap="#FrontPageMap" border="0" height="36" alt="网页设计师" src="../images/jlogo3.GIF" width="111"></a><!--webbot bot="ImageMap" endspan i-checksum="13187" --></td>
<td width="50%" bgcolor="#006DA2"><p align="right"><br>
<a href="js51.htm">上一页</a> 下一页 <a href="../index.html">返回首页</a></td>
</tr>
</table>
<table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr>
<td width="5%" bgcolor="#B7D1F4" valign="top"></td>
<td width="16%" bgcolor="#006DA2" valign="top"><table border="0" width="100%" cellspacing="4" cellpadding="0">
<tr>
<td width="16%"></td>
<td width="84%"></td>
</tr>
<tr>
<td width="16%"><font color="#ffff80">★</font></td>
<td width="84%"><font face="Arial"><a href="index.htm">JAVASCRIPT</a></font></td>
</tr>
<tr>
<td width="16%"><font color="#ffff80">★</font></td>
<td width="84%"><font face="Arial"><a href="../frontpage/index.htm">FRONTPAGE</a></font></td>
</tr>
<tr>
<td width="16%"><font color="#ffff80">★</font></td>
<td width="84%"><font face="Arial"><a href="../dhtml/index.htm">DHTML</a></font></td>
</tr>
<tr>
<td width="16%"><font color="#ffff80">★</font></td>
<td width="84%"><font face="Arial"><a href="../photoshop/index.htm">PHOTOSHOP</a></font></td>
</tr>
<tr>
<td width="16%"><font color="#ffff80">★</font></td>
<td width="84%"><font face="Arial"><a href="../fireworks/index.htm">FIREWORKS</a></font></td>
</tr>
<tr>
<td width="16%"><font color="#ffff80">★</font></td>
<td width="84%"><font face="Arial"><a href="../flash/index.htm">FLASH</a></font></td>
</tr>
<tr>
<td width="16%"><font color="#ffff80">★</font></td>
<td width="84%"><font face="Arial"><a href="../cgi/index.htm">CGI</a></font></td>
</tr>
<tr>
<td width="16%" a><font color="#ffff80">★</font></td>
<td width="84%"><font face="Arial"><a href="../download/index.htm">DOWNLOAD</a></font></td>
</tr>
<tr>
<td width="16%"></td>
<td width="84%"></td>
</tr>
</table>
</td>
<td width="79%" valign="top"><table border="0" width="100%" cellspacing="1" cellpadding="0">
<tr>
<td width="12%" bgcolor="#B7D1F4"><p align="center"><font color="#FF8000">名称</font></td>
<td width="88%" bgcolor="#FFFFFF"><p align="center">页面更新跟踪器</td>
</tr>
<tr>
<td width="12%" bgcolor="#B7D1F4" valign="top"><p align="center"><font color="#FF8000">实例</font></td>
<td width="88%"><table border="1" width="100%" bordercolor="#B7D1F4" cellspacing="0" cellpadding="0">
<tr>
<td width="100%">进入本页时,如果已经更新过,这个脚本会自动告诉你页面更新了。<p align="center"> </td>
</tr>
</table>
</td>
</tr>
<tr>
<td width="12%" bgcolor="#B7D1F4" valign="top"><p align="center"><font color="#FF8000">教程</font></td>
<td width="88%"><table border="1" width="100%" cellspacing="0" cellpadding="0" bordercolor="#B7D1F4">
<tr>
<td width="100%" bgcolor="#FFFFFF"><br>
<p>第一步:拷贝下面的代码到你的html文件的<head>和</head>之间;</p>
<blockquote>
<form name="copy1">
<p><textarea rows="4" name="S1" cols="39" onMouseOver="this.focus()" onFocus="this.select()"><SCRIPT LANGUAGE="JavaScript">
<!-- var cookiename="javastrack"; function getCookie(c_name) { c_string=c_name+"="; if(document.cookie.indexOf(c_string)==-1) {return "";} strbegin = (document.cookie.indexOf(c_string)+c_string.length); strend = document.cookie.indexOf(";", strbegin); if (strend == -1) {strend = document.cookie.length;} return (unescape(document.cookie.substring(strbegin, strend))); } function setCookie(c_name,value,exp) { c_string=c_name+"="; document.cookie=c_string + escape(value)+"; expires=" + exp.toGMTString(); //add new property } function removeCookie(c_name) { setCookie(c_name,"",new Date(0)); } function checkUpdate() //Update check function { var exp=new Date(); //get current date var plusoneyear=exp.getTime()+(365 * 24 * 60 * 60 * 1000); // 设置1年的cookies时间 exp.setTime(plusoneyear); var last=getCookie(cookiename); var str=document.lastModified; var update=new Date(str.substring(6,8),str.substring(0,2),str.substring(3,5),str.substring(9,11),str.substring(12,14),str.substring(15,17)); if(last!=0) // 以前已经访问过的页面 { if(update.getTime()>last) { // 自由改动下面一行的提示信息。 window.alert("您上次光临后此页已经更新了!"); } } else // 首次光临页面显示的信息 { //自由改动下面一行提示的信息内容。 window.alert("此页已经更新!"); } setCookie(cookiename,update.getTime(),exp); // set new last seen revision date cookie } //-->
</SCRIPT>
</textarea></p>
</form>
</blockquote>
<p>第二步:修改你的<body>语句为;<font face="Arial" color="#008080"><BODY
onLoad="checkUpdate();"></font></p>
<p>说明:看本页原代码,已经有详细注释。</p>
<p> </td>
</tr>
</table>
</td>
</tr>
<tr>
<td width="12%" bgcolor="#B7D1F4" valign="top"><p align="center"><font color="#FF8000">下载</font></td>
<td width="88%" bgcolor="#FFFFFF"> 请到<a href="../download/index.htm">下载中心</a></td>
</tr>
<tr>
<td width="12%" bgcolor="#B7D1F4" valign="top"><p align="center"><font color="#FF8000">版权</font></td>
<td width="88%" bgcolor="#FFFFFF"> 本站合作站点《<a href="http://java2000.wol.com.cn/index.html" target="_blank"><font face="Arial">Java2000</font></a>》友情提供</td>
</tr>
</table>
</td>
</tr>
</table>
<table border="0" width="100%" cellspacing="0" cellpadding="0" height="39">
<tr>
<td width="21%" bgcolor="#006DA2" height="25"><font color="#0072A8">.</font></td>
<td width="79%" bgcolor="#E6F2FF" height="25" colspan="2"><p align="right"><br>
<a href="js51.htm">上一页</a> 下一页 <a href="js54.htm#top">回到页首</a></td>
</tr>
<tr>
<td width="21%" height="3"></td>
<td width="79%" height="3" align="center" colspan="2"><font color="#FFFFFF">.</font></td>
</tr>
<tr>
<td width="21%" height="2"></td>
<td width="27%" height="7" align="center" rowspan="2"><p align="right"><img src="../images/jlogo4.GIF" alt="jlogo4.GIF (1066 bytes)" WIDTH="26" HEIGHT="26"></td>
<td width="52%" height="2">《<a href="http://pageone.yeah.net">网页设计师</a>》
阿捷制作 版权所有</td>
</tr>
<tr>
<td width="21%" height="5"></td>
<td width="52%" height="5"><font face="Arial">©1999-2000</font> <font face="Arial">All
Rights Reserved</font></td>
</tr>
<tr>
<td width="21%" height="4"></td>
<td width="79%" height="4" align="center" colspan="2">本站教程免费学习,引用请注明出处,禁止抄袭。</td>
</tr>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -