谁知道阿里巴巴的注册页面表单验证效果是如何实现的?

来源:百度知道 编辑:UC知道 时间:2024/05/30 16:42:04
不知道有没有PHP版的啊?或者JS调用的?

实现文件:img.asp
<%
'Response.Expires = 0
Response.AddHeader "Pragma","no-cache"
Response.AddHeader "cache-ctrol","no-cache"
Response.ContentType = "Image/BMP"
Randomize Timer

Dim Text_Data(9),Text_Len,Int_Temp(),I,j,k,Int_Temp2

Text_Len = 4 '验证码长度(支持1-25位)

'**********************

ReDim Int_Temp( Text_Len - 1 )

Text_Data(0) = "00000000000001111000001100110000110111000011011100001100110000111011000011101100001100110000011110000000000000"
Text_Data(1) = "00000000000000011000000011100000111110000000011000000001100000000110000000011000000001100000000110000000000000"
Text_Data(2) = "00000000000001111000001100110000110011000000001100000001100000001100000001100000001100000000111111000000000000"
Text_Data(3) = "000000000000011110000011001100001100110000000011000000111000000000110000110011000011