|
20精币
<script type="text/javascript">
document.domain = "qq.com";
var uv = {};
uv.attr = {
PublicKey:"A5B55950369962C81804C0929C07776A671E505D746E0B2EA1EEE06762D4448E89342AD5725C1703F5146B37444751EF4BEB2D0803AE7D1787FA21486E3609761A29C1DB827B8DBBA5D9A8358B6F2C6A8FD942D3A0DEC064263094663EFEB799EB635CBC64EA72A9EE4EC1983520F4795502277B9A53A122D7BDA2CB98FC7FB1",
verify_type: 1
};
var QAAttr = {
QueNum:3,
QuerId:[10,12,11],
QueHtmlId:"dnaQuestion",
AnsHtmlId:"dnaAnswer",
QueOrder:0,
tip_ques:"输入格式有误"
};
</script>
<script language="javascript">
var Ques = new CQuestion();
Ques.Init(QAAttr);
Ques.InitShow();
$("verify_btn").onclick = function(){
uv.act.hide_err();
var checkret = Ques.CheckQue();
if(!checkret) {
return false;
}
var RSA = new RSAKey();
RSA.setPublic(uv.attr.PublicKey, "10001");
var AnsHex1 = RSA.encrypt($("dnaAnswer1").value+"|"+1384784618);
$("dnaAnswerHex1").value=AnsHex1;
if($("dnaAnswer2"))
{
var AnsHex2 = RSA.encrypt($("dnaAnswer2").value+"|"+1384784618);
$("dnaAnswerHex2").value=AnsHex2;
}
if($("dnaAnswer3"))
{
var AnsHex3 = RSA.encrypt($("dnaAnswer3").value+"|"+1384784618);
$("dnaAnswerHex3").value=AnsHex3;
}
$.post(uv.act.verify_url, uvVerifyCB);
};
</script>
|
|