ShowCounter.asp
Upload User: ahxunteng
Upload Date: 2022-05-16
Package Size: 1606k
Code Size: 1k
Development Platform:

VBScript

  1. <!--#include file="../inc/conn.asp"-->
  2. <!--#include file="config.asp"-->
  3. <%
  4. imgpath="../counter/num/style"
  5. set rs=server.createobject("adodb.recordset")
  6. sqltext="select querycount from sysdata where code='全屏2008'"
  7. rs.open sqltext,conn,1,1
  8. totcount=rs(0)
  9. totcount=totcount+fake
  10. rs.close
  11. %>
  12. <%if show="on" then %>
  13. document.write("共有");
  14. <%if style=0 then %>
  15. document.write("<font color=red><%=totcount%></font>");
  16. <%else %>
  17. <%for i=1 to len(totcount)%>
  18. document.write("<img src=<%=imgpath%><%=style%>/<%=mid(totcount,i,1)%>.gif width=12 height=12>");
  19. <%next%>
  20. <%end if %>
  21. document.write("人次访问");
  22. <%end if%>
  23. <%set rs=nothing %>