欢迎光临
我们一直在努力

在一个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页面停留的多少时间的程序
分享到: 更多 (0)