首页 > 学院 > 开发设计 > 正文

一个漂亮的点击计数器

2019-11-18 21:13:34
字体:
来源:转载
供稿:网友
<%@ 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>


发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表