yejier1983 发表于 2010-6-2 20:12:04

如何获取这种验证码的图片呢?

本帖最后由 yejier1983 于 2010-6-3 10:32 编辑

<script type="text/javascript">
/*<![CDATA[*/
document.write('<img id="MzImgExpPwd" alt="" src="ShowExPwd.aspx?temp=' + (new Date().getTime().toString(36)) + '" />');
/*]]>*/
</script>
懂的大哥帮帮忙

yejier1983 发表于 2010-6-3 10:31:50

调用js处理解决
Func RegCreatePng()
        Local $code
        $code &= 'function regcreatepng()' & @CRLF
        $code &= '{' & @CRLF
        $code &= 'var now = new Date()' & @CRLF
        $code &= 'var nvalue = Math.random()+"_"+now.getTime()' & @CRLF
        $code &= 'return nvalue' & @CRLF
        $code &= '}' & @CRLF
        $nJS = ObjCreate("ScriptControl")
        $nJS.language = "JavaScript"
        $nJS.addcode($code)
        $nRegCreatePng = $nJS.Run("regcreatepng")
        Return $nRegCreatePng
EndFunc

autoit3CN 发表于 2010-6-3 23:57:34

学习了!!
页: [1]
查看完整版本: 如何获取这种验证码的图片呢?