国产探花免费观看_亚洲丰满少妇自慰呻吟_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.


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

圖片精選

主站蜘蛛池模板: 昭平县| 历史| 务川| 靖西县| 新乡县| 柞水县| 商洛市| 冷水江市| 东至县| 安康市| 疏附县| 上思县| 碌曲县| 尼玛县| 宜川县| 从江县| 三台县| 宜州市| 华安县| 深州市| 天柱县| 永嘉县| 五家渠市| 莱州市| 拉萨市| 海兴县| 若尔盖县| 邮箱| 麻江县| 都匀市| 通江县| 牟定县| 博白县| 祁东县| 临湘市| 裕民县| 游戏| 贵港市| 泰兴市| 杭州市| 习水县|