首页 | 免费域名 | 个人服务器 | 一流信息监控拦截系统 | 虚拟主机知识库 | ASP 空间 | ASP技术大全 | 下载中心 | 客户服务中心
  7i24 > ASP技术大全 > 代码乐园 >
    7i24 .Com  
  计算用户在你的页面停留了多长时间的程序例子--比如填表单用了多长时间

7i24.Com不停为您服务


<% If Request.QueryString("time") = "" Then %>
You haven't clicked on the link below yet.<BR>
<% Else %>
You spent <%= DateDiff("s", Request.QueryString("time"), Now()) %>
seconds looking at the previous page.<BR>
<% End If %>
<BR>
<A HREF="time.asp?time=<%= Server.URLEncode(Now())%>">How long have I
spent on this page?</A><BR>
<BR>
This script passes the time in a QueryString parameter. You could
just as
easily store it in a session variable, log it to a database, or write
it to
a text file. It all depends upon what you intend to use the
information
for.



  2002年1月14日  阅读 893 次  发送此页给朋友  来源:    版权争议  删除

相关文章:   近期热点:

上一篇: 一个可以管理来访页的程序例子,可以删除来访页并修改。
下一篇: 注册表项:
返回上一层...
搜索:

(C)2004-2022 7i24.Com 保留所有权利