欢迎光临
我们一直在努力

在一个asp页面停留的多少时间的程序_asp实例

建站超值云服务器,限时71元/月

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.

———————————————————————-

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.

赞(0)
版权申明:本站文章部分自网络,如有侵权,请联系:west999com@outlook.com 特别注意:本站所有转载文章言论不代表本站观点! 本站所提供的图片等素材,版权归原作者所有,如需使用,请与原作者联系。未经允许不得转载:IDC资讯中心 » 在一个asp页面停留的多少时间的程序_asp实例
分享到: 更多 (0)