还者用服务器Application对象记录下来。
解决方案 »
- 求一个css的表达式,有答案立即给分
- 获取子节点
- 视频播放
- 如何打印指定框架?
- javascript怎麼去掉一個字符串最後面n個字符?
- 写下拉菜单利用iframe来解决下拉菜单被dropdownlist挡住的问题,我的iframe竟然也把菜单挡住了。
- 请问如何捕捉页面中光标位置的偏移量,想实现一个书签功能
- 我想在网页里插入flash文件,有办法能让它按照实际大小显示吗,谢谢.
- 请教孟子E章,能不能把本地(非服务器端的)文件自动上栽
- js中数组的filter()方法返回值问题
- 关于打开窗口的问题,怎么知道打开的窗口是否还开着。
- 对于用target="_blank"或window.open("your url")打开的窗口如何提示关闭?
<%
oldtime=Application("oldtime")
Application("oldtime")=now()
%>
<%="最后一次访问的时间是:" & formatdatetime(oldtime,1) & " " & formatdatetime(oldtime,4)%>
var arg = name + "=";
var alen = arg.length;
var clen = document.cookie.length;
var i = 0;
while (i < clen) {
var j = i + alen;
if (document.cookie.substring(i, j) == arg)
return getCookieVal (j);
i = document.cookie.indexOf(" ", i) + 1;
if (i == 0) break;
}
return null;
}function getCookieVal (offset) {
var endstr = document.cookie.indexOf (";", offset);
if (endstr == -1)
endstr = document.cookie.length;
return unescape(document.cookie.substring(offset, endstr));
}
function SetCookie (name, value) {
var the_date = new Date("December 31, 3666");
var the_cookie_date =the_date.toGMTString();
document.cookie = name + "=" + escape (value)+ ";expires=" +the_cookie_date;
}
function window.onload(){//B页面打开时设置cookieA=B
var last=GetCookie("cookieA");
if(last) {
var temp=last.split(";");
alert("The last time you visit this page is:"+temp[0]);
}
else
alert("欢迎您第一次访问!");
}function window.onunload(){//B页面打开时设置cookieA=B
var d=new Date();
SetCookie("cookieA",d)
}function acceptA(){//接收cookieA,并进行处理
if(GetCookie("cookieA")=="0"){
self.opener=null;
self.close();
}
}
</script>