网络编程 | 站长之家 | 网页制作 | 图形图象 | 操作系统 | 冲浪宝典 | 软件教学 | 网络办公 | 邮件系统 | 网络安全 | 认证考试 | 系统进程
Firefox | IE | Maxthon | 迅雷 | 电驴 | BitComet | FlashGet | QQ | QQ空间 | Vista | 输入法 | Ghost | Word | Excel | wps | Powerpoint
asp | .net | php | jsp | Sql | c# | Ajax | xml | Dreamweaver | FrontPages | Javascript | css | photoshop | fireworks | Flash | Cad | Discuz!
当前位置 > 网站建设学院 > 网络编程 > ASP实例
Tag:注入,存储过程,分页,安全,优化,xmlhttp,fso,jmail,application,session,防盗链,stream,无组件,组件,md5,乱码,缓存,加密,验证码,算法,cookies,ubb,正则表达式,水印,索引,日志,压缩,base64,url重写,上传,控件,Web.config,JDBC,函数,内存,PDF,迁移,结构,破解,编译,配置,进程,分词,IIS,Apache,Tomcat,phpmyadmin,Gzip,触发器,socket
网络编程:ASP教程,ASP.NET教程,PHP教程,JSP教程,C#教程,数据库,XML教程,Ajax,Java,Perl,Shell,VB教程,Delphi,C/C++教程,软件工程,J2EE/J2ME,移动开发
本月文章推荐
.利用ASP.NET设计FTP文件上传(上).
.ASP服务器组件的编程.
.一个汉字转成拼音的代码.
.精彩OUTLOOK 2000组件放送.
.根据IP地址自动判断转向分站的代.
.解决ASP导出查询结果到Excel中的.
.动态按钮生成器(上).
.一个检查E文拼写错误的Code.
.虹雨的功能较全的计数程序.
.构建稳定的服务器端组件的七个步.
.用表单来提交sql - 2.
.XMLHTTP+Javascript+Asp写得聊天.
.深入讲解 ASP+ 验证(二).
.如何用ASP编写网站统计系统(一).
.ASP进阶之文章在线管理更新(4).
.用ASPMail组件实现E_mail自动反馈.
.用ASP.NET构建完整E-mail发送系统.
.GB码和BIG5码的互换技术.
.一个简单的网上书城的例子(八).
.asp实现同网站不同目录帮定不同域.

在一个ASP页面停留的多少时间的程序

发表日期:2000-10-20


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.

上一篇:用ASP创建日志文件(附源程序) 人气:12681
下一篇:趣味访客计数器设计两则 人气:11492
浏览全部ASP的内容 Dreamweaver插件下载 网页广告代码 祝你圣诞节快乐 2009年新年快乐