下面一款代碼是一個用asp 生成圖片驗證碼的程序哦
<%
Option Explicit
Response
NumCode
Function NumCode()
Response
Response
Response
dim zNum
dim Ados
Randomize timer
zNum = cint(
Session("GetCode") = zNum
dim zimg(
NStr=cstr(zNum)
For i=
zimg(i)=cint(mid(NStr
Next
dim Pos
set Ados=Server
Ados
Ados
Ados
set Ados
Ados
Ados
Ados
Ados
Ados
for i=
Ados
Ados
Ados
next
Ados
Pos=lenb(Ados
Ados
for i=
for j=
Ados
Ados
Ados
next
next
Response
Ados
Response
Ados
Ados
End Function
%>
From:http://tw.wingwit.com/Article/program/net/201311/12869.html