Network Elite Counter Source program

Source: Internet
Author: User
Tags border color count textout
Program | counter | The network uses the Imagelib component!
<%
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 (".. /Save the path of the count File/")
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" Font Color
ILIB. BrushColor = "#000000" ' Background color
' 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" Border color
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
%>
This counter uses the Imagelib component to register the component before using the program;
If you save the file as Count.asp, then refer to this counter in count.asp with the following code:


You can also directly refer to the counter program of this site, the code is as follows:

<a href= "http://www.chinanetboy.com/" target= "_blank" alt= "network Elite" >src= "http://www.chinanetboy.com/scripts/count.asp?site_id= your domain name" border=0></a>


But please send me an email before use, lest I delete your data when I clean it up:
Counter program code see here http://www.chinanetboy.com/website/read.asp?id=123;



Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.