优秀的软件开发团队:深圳升蓝软件 数据库开发 .Net技术  |  ASP技术 PHP技术 JSP技术 应用技术类     
热门推荐
升蓝OA办公自动化系统
基于.Net技术的网络
协同办公环境
 
ASP基础
数据库相关
安全加密
全文检索
ASP应用
打印相关
客户端相关
XML相关
系统相关
正则表达式
ASP技巧
组件开发
脚本编码
FSO专题
邮件相关
远程脚本
性能优化
 
相关链接
深圳升蓝软件:系统集成、办公自动化平台、电子商务、电子政务、Web数据库、企业网站、游戏、手机应用程序、CDMA软件、电子出版物等,为客户提供优秀的解决方案
 
升蓝(www.hi-blue.com)为企业管理、政府办公提供成熟的、易于实施的IT技术服务,我们的解决方案包括OA办公自动化系统CRM客户关系管理系统ERP企业生产管理和订单管理系统电子政务系统、知识管理系统、企业门户、商业智能、工程项目管理等等...
 
电子政务解决方案
塑料/橡胶管理系统
知识管理系统简介
多媒体光盘方案
ERP企业资源管理
订单计划管理系统
PM工程项目管理系统
会员管理系统
相关资料下载
OA办公自动化系统
CRM客户关系管理系统
在线试用版本说明
OA 系统的用户手册
 
 
 
 
升蓝开发团队 > 技术资料 > ASP技术 > 打印相关 : 网络精英计数器源程序

网络精英计数器源程序


March 25,2004
使用了imagelib组件!
     <%
     site_id=Request.QueryString("site_id")
     if isempty(site_id) then
     Response.End
     end if
     
     Set Sistema = CreateObject("Scripting.FileSystemObject")
     set ILIB = server.createobject("Overpower.ImageLib")
     path=server.MapPath("../保存计数文件的路径/")
     CounterFile=path & "count_"& site_id &".txt"
     contagem = 0
     if Sistema.FileExists(counterfile) then
     Set arquivo = Sistema.GetFile(counterfile)
     Set texto = arquivo.OpenAsTextStream(1, -2)
     contagem = texto.readline
     texto.close
     end if
     contagem = contagem + 1
     
     Set texto = sistema.CreateTextFile(counterfile, true, false)
     texto.writeline contagem
     texto.close
     
     texto = contagem
     if contagem > 1 then texto = texto
     textolen=len(texto)
     for i=1 to 8-textolen
     texto="0" & texto
     next
     
     ILIB.FontColor = "#00ff00" '字体色
     ILIB.BrushColor = "#000000" '背景色
     'ILIB.FontFace = "Verdana"
     'ILIB.FontFace = "Checkers"
     ILIB.FontSize = 8
     ILIB.FontBold = false
     ILIB.width = ILIB.GetTextwidth(texto)+5
     ILIB.height = ILIB.GetTextHeight(texto)+5
     ILIB.PenColor = "#307C3B" '边框色
     ILIB.Box 1,1,ILIB.WIDTH,ILIB.HEIGHT
     ILIB.Textout texto,3,3
     
     ILIB.Textout "",ILIB.width/2 - tamanho/2,10
     
     ILIB.PictureBinaryWrite 2, 0, ""
     
     Set Sistema =nothing
     set ILIB =nothing
     Set arquivo = nothing
     Set texto = nothing
     %>
     本计数器使用了ImageLib组件,在使用程序前需要先注册该组件;
     假如说你将文件保存为count.asp,然后在与count.asp,然后通过下面代码引用本计数器:
     <img src="path/count.asp?site_yoursite" border=0>
     
     你也可以直接引用本站的计数器程序,代码如下:
     
     <a href="http://www.chinanetboy.com/" target="_blank" alt="网络精英"><img
src="http://www.chinanetboy.com/scripts/count.asp?site_id=你的域名" border=0></a>
     
     
     不过使用之前请发个email给我,免得我在清理的时候将你的数据删了 :)
     计数器程序代码请看这里http://www.chinanetboy.com/website/read.asp?id=123;
数据库开发 | .Net技术 | ASP技术 | PHP技术 | JSP技术 | 应用技术类 | 升蓝开发小组
Copyright ? 2001-2004 Shenzhen Hi-blue Software Team 升蓝开发小组 All rights reserved