一个漂亮的点击计数器
网络整理 - 07-26
<%@ 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>
<tr>
<td background="counter.jpg" valign="top"> <%=RS( "counter" )%>
</td>
</tr>
</table>
</center>
<%
set Rs = nothing
set Conn = nothing
%>
</body>
</html>