一个漂亮的点击计数器

2016-01-29 17:25 0 1 收藏

一个漂亮的点击计数器,一个漂亮的点击计数器

【 tulaoshi.com - ASP 】

  <%@ Language=VBScript %

<html
<%

Set Conn = Server.CreateObject("ADODB.Connection")
Conn.Provider = "Microsoft.Jet.OLEDB.4.0"
Conn.ConnectionString = "Data Source=" & Server.MapPath ("db1.mdb")
Conn.Open
Set Rs = Server.CreateObject("ADODB.Recordset")
Rs.Open "SELECT * from table1", Conn, 1,3
Rs.addnew
rs.movelast
Rs("hits") =hits
Rs.update
%
<body bgcolor="#FFFFFF"
<center
   <table width=97 height="44"
    <tr
      <td background="counter.jpg" height="32" align="center" valign="top" <%=RS( "counter" )%
      </td
    </tr
  </table
</center
<%
set Rs = nothing
set Conn = nothing
%
</body
</html

 

来源:https://www.tulaoshi.com/n/20160129/1501316.html

延伸阅读
标签: PHP
  1)文本计数器 <?php $countfile="/count.txt";  //设置保存数据的文件 if (!file_exists($countfile)){//判断文件是否存在 exec( "echo 0 $countfile"); } $fp = fopen($countfile,"rw"); $length=filesize($countfile); $num = fgets($fp,$length); $num += 1; exec( "rm -rf $...
标签: Java JAVA基础
  计数器是一般网站必备的东东,别小看它了,每当站长看着小小计数器上的数字飞速增长的时候,感觉实在是好极了。以前我们用cgi、asp来写计数器,这方面的文章很多了,在这里,我们将会采用目前比较流行的jsp技术演示如何做一个计数器。 其中我们用到了两个文件,test.jsp文件用于在浏览器中运行,counter.java是后台的一个小java bean程...
标签: Java JAVA基础
  <!-- JSP-Hitcounter counts sessions. Copyright (C) 2000 Jesper Schmitz Mouridsen. Visit www.webappcabaret/jsm2/webapps.jsp?find=jsphcs for more info. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software...
标签: PHP
  <?   //require (’common.inc’);   $arr_request=array();   if (count($HTTP_GET_VARS))       {       while (list($key,$value)=each($HTTP_GET_VARS))       {      &nbs...
标签: ASP
<% dim fso,f,no,I '定义变量绝对是个好习惯 Set fso = CreateObject("Scripting.FileSystemObject") '建立对象的实例 Set f = fso.OpenTextFile(Server.MapPath("count.no"), 1, True) '建立文本文件,打开为只读. if f.AtEndOfStream then '判断这个文件是否不存在 no=1 else no=f.ReadLine no=no+1 end if f.Close set f=fso.O...

经验教程

81

收藏

98
微博分享 QQ分享 QQ空间 手机页面 收藏网站 回到头部