当前位置: 移动技术网 > IT编程>开发语言>.net > 在一个ASP页面停留的多少时间的程序

在一个ASP页面停留的多少时间的程序

2019年01月14日  | 移动技术网IT编程  | 我要评论

12063网上订票官网,爱国主义教育基地观后感,远望楼

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.

如对本文有疑问,请在下面进行留言讨论,广大热心网友会与你互动!! 点击进行留言回复

相关文章:

验证码:
移动技术网