关键词
最优秀的发帖人
tcw987654321 (2424) | ||||
tiger_tiger (2015) | ||||
梦随峰飘 (542) | ||||
868 (284) | ||||
mmao21 (251) | ||||
x__________________X (222) | ||||
y4341991 (101) | ||||
花生省魔术 (98) | ||||
Tiger&蘋果爸 (80) | ||||
pyy (74) |
[转帖]光临次数
2 posters
[转帖]光临次数
版权信息:
<center><table BORDER=0 >
<tr>
<td><script
language="JavaScript">
function GookieVal(offset) {
var endstr = document穋ookie.indexOf (";", offset);
if (endstr == -1)
endstr = document穋ookie.length;
return unescape(document穋ookie.substring(offset, endstr));
}
function Gookie(name) {
var arg = name + "=";
var alen = arg.length;
var clen = document穋ookie.length;
var i = 0;
while (i < clen) {
var j = i + alen;
if (document穋ookie.substring(i, j) == arg)
return GookieVal (j);
i = document穋ookie.indexOf(" ", i) + 1;
if (i == 0) break;
}
return null;
}
function Sookie(name, value) {
var argv = Sookie.arguments;
var argc = Sookie.arguments.length;
var expires = (argc > 2) ? argv[2] : null;
var path = (argc > 3) ? argv[3] : null;
var domain = (argc > 4) ? argv[4] : null;
var secure = (argc > 5) ? argv[5] : false;
document穋ookie = name + "=" + escape (value) +
((expires == null) ? "" : ("; expires="
+ expires.toGMTString())) +
((path == null) ? "" : ("; path=" + path)) +
((domain == null) ? "" : ("; domain=" + domain)) +
((secure == true) ? "; secure" : "");
}
function Dookie(name) {
var exp = new Date();
exp.setTime (exp.getTime() - 1);
var cval = Gookie (name);
document穋ookie = name + "=" + cval + "; expires="
+ exp.toGMTString();
}
//
// End of cookie functions
//////////
</script>
</td>
</tr>
<tr>
<td><font face="Verdana" color="#字體顏色"><span style="font-size: 字體大小"><script>
var expdate = new Date();
// 設定期限為一年後
expdate.setTime(expdate.getTime() + (24 * 60 * 60 * 1000 * 365));
if(!(visits = Gookie("3wave"))) {visits = 1;
Sookie("3wave", visits, expdate, "/", null, false);
document.write("這是您第 " + visits + " 次大駕本站!");}
else{
// 將到站次數累加一次
visits++;
Sookie("3wave", visits, expdate, "/", null, false);
document.write("這是您第 " + visits + " 次光臨本站!");
}
</script></font></span>
</td>
</tr>
</table></center>
Cookie Functions - Bill Dortch (21-Jan-96)
The following functions are released to the public domain.
<center><table BORDER=0 >
<tr>
<td><script
language="JavaScript">
function GookieVal(offset) {
var endstr = document穋ookie.indexOf (";", offset);
if (endstr == -1)
endstr = document穋ookie.length;
return unescape(document穋ookie.substring(offset, endstr));
}
function Gookie(name) {
var arg = name + "=";
var alen = arg.length;
var clen = document穋ookie.length;
var i = 0;
while (i < clen) {
var j = i + alen;
if (document穋ookie.substring(i, j) == arg)
return GookieVal (j);
i = document穋ookie.indexOf(" ", i) + 1;
if (i == 0) break;
}
return null;
}
function Sookie(name, value) {
var argv = Sookie.arguments;
var argc = Sookie.arguments.length;
var expires = (argc > 2) ? argv[2] : null;
var path = (argc > 3) ? argv[3] : null;
var domain = (argc > 4) ? argv[4] : null;
var secure = (argc > 5) ? argv[5] : false;
document穋ookie = name + "=" + escape (value) +
((expires == null) ? "" : ("; expires="
+ expires.toGMTString())) +
((path == null) ? "" : ("; path=" + path)) +
((domain == null) ? "" : ("; domain=" + domain)) +
((secure == true) ? "; secure" : "");
}
function Dookie(name) {
var exp = new Date();
exp.setTime (exp.getTime() - 1);
var cval = Gookie (name);
document穋ookie = name + "=" + cval + "; expires="
+ exp.toGMTString();
}
//
// End of cookie functions
//////////
</script>
</td>
</tr>
<tr>
<td><font face="Verdana" color="#字體顏色"><span style="font-size: 字體大小"><script>
var expdate = new Date();
// 設定期限為一年後
expdate.setTime(expdate.getTime() + (24 * 60 * 60 * 1000 * 365));
if(!(visits = Gookie("3wave"))) {visits = 1;
Sookie("3wave", visits, expdate, "/", null, false);
document.write("這是您第 " + visits + " 次大駕本站!");}
else{
// 將到站次數累加一次
visits++;
Sookie("3wave", visits, expdate, "/", null, false);
document.write("這是您第 " + visits + " 次光臨本站!");
}
</script></font></span>
</td>
</tr>
</table></center>
由tcw987654321于周三 六月 25, 2008 11:46 am进行了最后一次编辑,总共编辑了3次
您在这个论坛的权限:
您不能在这个论坛回复主题