javascript点击才出现验证码 时间:2020-05-12 人气:0 <% if request("cur_action")="add" then code=Request.Form("code") if code=empty then response.write "<script LANGUAGE='javascript'>alert('请输入验证码!');history.go(-1);</script>" Session("GetCode")=empty response.End() elseif lcase(code)<>lcase(Session("GetCode")) then response.write "<script LANGUAGE='javascript'>alert('您输入验证码出错!');history.go(-1);</script>" Session("GetCode")=empty response.End() Else Response.Write "<script>alert('登陆成功');history.back();</script>" response.End() end if end if %> <script LANGUAGE=javascript> /*显示认证码 o start1*/ function get_Code() { var Dv_CodeFile = "//www.qb5200.com/inc/getcode.asp"; //这个地方需要换车你网站实际的地址 if(document.getElementById("imgid")) document.getElementById("imgid").innerHTML = '' } /*o end*/ </script> <script language="JavaScript" type="text/javascript"> var dvajax_request_type = "GET"; </script> <script language="JavaScript" src="dv_ajax.js" type="text/javascript"></script> 验证码: 点击获取验证码 [Ctrl+A 全选 注:如需引入外部Js需刷新才能执行] 加载全部内容