国内流行的内容管理系统(CMS)多端全媒体解决方案 https://www.dedebiz.com
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

42 lines
1.0KB

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