中文字幕免费精品_亚洲视频自拍_亚洲综合国产激情另类一区_色综合咪咪久久

asp生成數(shù)字圖片驗(yàn)證碼
來(lái)源:易賢網(wǎng) 閱讀:1136 次 日期:2014-08-26 10:24:32
溫馨提示:易賢網(wǎng)小編為您整理了“asp生成數(shù)字圖片驗(yàn)證碼”,方便廣大網(wǎng)友查閱!

查看效果:asp生成數(shù)字圖片驗(yàn)證碼

下載地址:asp生成數(shù)字圖片驗(yàn)證碼下載

在這個(gè)代碼中,用到了兩個(gè)文件,一個(gè)是head.fix,body.Fix

調(diào)用代碼:

<img src=numbercode.asp onclick="javascript:change();" alt="點(diǎn)擊變化" id="codeimg">

<script language="javascript">

function change(){

document.getElementById("codeimg").src='numbercode.asp';

}

</script>

圖片代碼:

Option Explicit

Response.buffer=true

NumCode

Function NumCode()

Response.Expires = -1

Response.AddHeader "Pragma","no-cache"

Response.AddHeader "cache-ctrol","no-cache"

dim zNum,i,j

dim Ados,Ados1

Randomize timer

zNum = cint(8999*Rnd+1000)

Session("GetCode") = zNum

dim zimg(4),NStr

NStr=cstr(zNum)

For i=0 to 3

zimg(i)=cint(mid(NStr,i+1,1))

Next

dim Pos

set Ados=Server.CreateObject("Adodb.Stream")

Ados.Mode=3

Ados.Type=1

Ados.Open

set Ados1=Server.CreateObject("Adodb.Stream")

Ados1.Mode=3

Ados1.Type=1

Ados1.Open

Ados.LoadFromFile(Server.mappath("body.Fix"))

Ados1.write Ados.read(1280)

for i=0 to 3

Ados.Position=(9-zimg(i))*320

Ados1.Position=i*320

Ados1.write ados.read(320)

next 

Ados.LoadFromFile(Server.mappath("head.fix"))

Pos=lenb(Ados.read())

Ados.Position=Pos

for i=0 to 9 step 1

for j=0 to 3

Ados1.Position=i*32+j*320

Ados.Position=Pos+30*j+i*120

Ados.write ados1.read(30)

next

next

Response.ContentType = "image/BMP"

Ados.Position=0

Response.BinaryWrite Ados.read()

Ados.Close:set Ados=nothing

Ados1.Close:set Ados1=nothing

End Function

更多信息請(qǐng)查看IT技術(shù)專(zhuān)欄

更多信息請(qǐng)查看網(wǎng)絡(luò)編程
易賢網(wǎng)手機(jī)網(wǎng)站地址:asp生成數(shù)字圖片驗(yàn)證碼
由于各方面情況的不斷調(diào)整與變化,易賢網(wǎng)提供的所有考試信息和咨詢(xún)回復(fù)僅供參考,敬請(qǐng)考生以權(quán)威部門(mén)公布的正式信息和咨詢(xún)?yōu)闇?zhǔn)!

2026國(guó)考·省考課程試聽(tīng)報(bào)名

  • 報(bào)班類(lèi)型
  • 姓名
  • 手機(jī)號(hào)
  • 驗(yàn)證碼
關(guān)于我們 | 聯(lián)系我們 | 人才招聘 | 網(wǎng)站聲明 | 網(wǎng)站幫助 | 非正式的簡(jiǎn)要咨詢(xún) | 簡(jiǎn)要咨詢(xún)須知 | 新媒體/短視頻平臺(tái) | 手機(jī)站點(diǎn) | 投訴建議
工業(yè)和信息化部備案號(hào):滇ICP備2023014141號(hào)-1 云南省教育廳備案號(hào):云教ICP備0901021 滇公網(wǎng)安備53010202001879號(hào) 人力資源服務(wù)許可證:(云)人服證字(2023)第0102001523號(hào)
云南網(wǎng)警備案專(zhuān)用圖標(biāo)
聯(lián)系電話:0871-65099533/13759567129 獲取招聘考試信息及咨詢(xún)關(guān)注公眾號(hào):hfpxwx
咨詢(xún)QQ:1093837350(9:00—18:00)版權(quán)所有:易賢網(wǎng)
云南網(wǎng)警報(bào)警專(zhuān)用圖標(biāo)
主站蜘蛛池模板: 海兴县| 广元市| 来宾市| 通海县| 时尚| 吴堡县| 游戏| 邹平县| 贺州市| 鄱阳县| 普宁市| 嵊州市| 仁寿县| 长葛市| 梁河县| 监利县| 深水埗区| 沈阳市| 峨边| 津市市| 黄龙县| 诏安县| 沽源县| 泾阳县| 阿拉善盟| 永泰县| 上思县| 通河县| 互助| 洛南县| 博爱县| 二手房| 化德县| 安岳县| 嘉定区| 叶城县| 桃园市| 禹城市| 沙洋县| 张家港市| 蒙城县|