在一个ASP页面停留的多少时间的程序
程序员文章站
2022-04-19 13:36:23
asp source code: ----------------------------------------------------------------------<...
asp source code:
----------------------------------------------------------------------
<% if request.querystring("time") = "" then %>
you havent 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.?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.
----------------------------------------------------------------------
asp source code:
----------------------------------------------------------------------
<% if request.querystring("time") = "" then %>
you havent 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.
----------------------------------------------------------------------
<% if request.querystring("time") = "" then %>
you havent 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.?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.
----------------------------------------------------------------------
asp source code:
----------------------------------------------------------------------
<% if request.querystring("time") = "" then %>
you havent 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.
推荐阅读
-
JavaScript 网页中实现一个计算当年还剩多少时间的倒数计时程序
-
在一个ASP页面停留的多少时间的程序
-
JavaScript 网页中实现一个计算当年还剩多少时间的倒数计时程序
-
用ASP统计用户在站点的停留时间(1)
-
需求:有一个首页,首页中有登录和注册 1. 点击注册进入注册页面。成功注册后,在页面中显示 “恭喜您,注册成功,页面内将在5秒后跳转到个人主页,点击这里立即跳转” 。进入个人主页后显示当前的时间。
-
javascript - 怎样纪录用户在某个页面停留的时间?
-
javascript - 怎样纪录用户在某个页面停留的时间?
-
在一个ASP页面停留的多少时间的程序
-
用ASP统计用户在站点的停留时间(2)