<% startime=timer() '以下为常用过程 public sub GetCode() response.write " " end sub public sub CodeIsTrue(b) if CStr(Session("GetCode"))cstr(Trim(Request("Code"))) then randomize Session("GetCode")=rnd() if b="" then response.write "&l t;scr ipt languag
废话不多说了,直接给大家贴代码了,具体代码如下所示:
[removed]
var code; //在全局 定义验证码
function createCode()
{ //创建验证码函数
code = "";
var codeLength =4;//验证码的长度
var selectChar = new Array(0,1,2,3,4,5,6,7,8,9,'a','b','c','d','e','f','g','h','i','j','k',
'l','m','n','o','p','