一个漂亮的点击计数器 |
| 作者:佚名 来源:不详 更新:2006-8-25 21:05:35 错误报告 我要投稿 |
<%@ 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>
|
|
| 文章录入:skyuu 责任编辑:skyuu |
|
| 【字体:小 大】【发表评论】【加入收藏】【告诉好友】【打印此文】【关闭窗口】 |