|
![]() |
名片设计 CorelDRAW Illustrator AuotoCAD Painter 其他软件 Photoshop Fireworks Flash |
|
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. 返回类别: 教程 上一教程: CHARTFX用法 下一教程: 用排序串字段实现树状结构(例程??连接字串) 您可以阅读与"在一个ASP页面停留的多少时间的程序"相关的教程: · 一个功能完善的专栏治理的程序->这是asp.net的第二个应用(一) · 一个功能完善的专栏治理的程序->这是asp.net的第二个应用(三) · 一个功能完善的专栏治理的程序->这是asp.net的第二个应用(二) · 初学ASP编程易犯的一个致命程序问题及解决办法 · 计算ASP页面的载入时间 |
![]() ![]() |
快精灵印艺坊 版权所有 |
首页![]() ![]() ![]() ![]() ![]() ![]() ![]() |