IQ绿色电脑总站 IQ绿色下载站 IQ电脑图片 IQ丁香鱼电脑站
网站首页 | 网络编程 | 站长学院 | 网页制作 | 图形图像 | 操作系统 | 冲浪宝典 | 软件教程 | 网络办公 | 邮件系统 | 网络安全 | 电脑故障 | 访客留言 | 内容搜索
>首页 -> 网络编程 -> ASP编程 -> ASP实例

TOP

一个漂亮的点击计数器
[ ]
<%@ 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>

[上一篇]使用 ASP+ 列表绑定控件(中) [下一篇]取得服务器上用户组列表脚本之VBS..

评论

称  呼:
内  容:

精彩文章地带

相关栏目

最新文章

热门文章

推荐文章