changeAuthCode.js
1018 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<!--
function changeAuthCode() {
var num = new Date().getTime();
var rand = Math.round(Math.random() * 10000);
num = num + rand;
var leftpos = $("#vdcode").position().left;
var toppos = $("#vdcode").position().top - 42;
$('#ver_code').css('left', leftpos+'px');
$('#ver_code').css('top', toppos+'px');
$('#ver_code').css('visibility','visible');
if ($("#vdimgck")[0]) {
$("#vdimgck")[0].src = "../include/vdimgck.php?tag=" + num;
}
return false;
}
function hideVc()
{
$('#ver_code').css('visibility','hidden');
}
$(document).ready(function(){
$("#vdcode").focus(function(){
var leftpos = $("#vdcode").position().left;
var toppos = $("#vdcode").position().top - 42;
$('#ver_code').css('left', leftpos+'px');
$('#ver_code').css('top', toppos+'px');
$('#ver_code').css('visibility','visible');
});
$("input[type='password']").click(function(){
hideVc()
});
$("#txtUsername").click(function(){
hideVc()
});
$("input[type='radio']").focus(function(){
hideVc()
});
})
-->