Created
April 1, 2020 02:05
-
-
Save HieuTrungMc/1821c96272c0c25160f617f7e9f50fac to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"use strict"; | |
function getcapcha(){ | |
ctext=""; | |
html=""; | |
for (i=1;i<=3;i++){ | |
rint=getrandomint(0,ln-1); | |
recsym=cstr.substr(rint,1); | |
ctext=ctext+recsym; | |
document.getElementById('cimg'+i).innerHTML="<img width='35' height='55' src='images/capchs/"+recsym+".png'>"; | |
} | |
console.log(ctext); | |
$('input')[0].value = ctext | |
capcha = ctext; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment