国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 編程 > ASP > 正文

在一個ASP頁面停留的多少時間的程序

2019-11-18 22:12:37
字體:
來源:轉載
供稿:網友
asp Source Code:


----------------------------------------------------------------------
<% 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.

----------------------------------------------------------------------


ASP Source Code:


----------------------------------------------------------------------


<% 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.


發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表

圖片精選

主站蜘蛛池模板: 赞皇县| 昌宁县| 定日县| 玛纳斯县| 晋江市| 麻阳| 辽宁省| 东辽县| 丁青县| 庆阳市| 鹰潭市| 长治市| 和静县| 京山县| 天镇县| 阿尔山市| 建湖县| 台南市| 衡水市| 洮南市| 岳阳县| 河南省| 榆树市| 赞皇县| 会理县| 宁国市| 邵阳市| 龙南县| 新丰县| 文安县| 嵊泗县| 吉木萨尔县| 乌兰浩特市| 吴桥县| 万安县| 凤山市| 和平县| 阳泉市| 东平县| 镇原县| 阿鲁科尔沁旗|