write_key.html 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. <html>
  2. <head>
  3. <title>写KEY</title>
  4. <meta http-equiv="content-type" content="text/html; charset=gb2312">
  5. <style type="text/css">
  6. table {width ="800px";
  7. font-size: 12px;
  8. background-color: #F1F5F6;
  9. }
  10. .button {
  11. border: 1px outset #a5b6d2;
  12. padding: 5px 2px;
  13. text-decoration: none;
  14. text-align: center;
  15. vertical-align: middle;
  16. color: #343333;
  17. cursor: pointer;
  18. background-color: #CAEAFF;
  19. }
  20. </style>
  21. <script language="JavaScript">
  22. var ntkologinobj;
  23. function initLoginOcx() {
  24. ntkologinobj = document.all("ntkoekeyloginocx");
  25. if (!ntkologinobj) {
  26. alert("EKEY登录控件初始化失败!");
  27. }
  28. }
  29. function writeLoginInfoToEkey() {
  30. try {
  31. ntkologinobj.Username = document.all("EkeyUsername").value;
  32. ntkologinobj.Password = document.all("EkeyPassword").value;
  33. ntkologinobj.SaveToEkey();
  34. } catch (e) {
  35. alert("写入EKEY错误:" + e);
  36. }
  37. }
  38. </script>
  39. </head>
  40. <body bgcolor="#ffffff" onload="initLoginOcx()">
  41. <center>
  42. <script src="ntkoGenEkeyLogOcxObj.js"></script>
  43. <BR>
  44. <hr width=60%>
  45. <h3>写入用户名和口令到EKEY</h3>
  46. 输入要写入EKEY的用户名:<INPUT id="EkeyUsername" VALUE="" maxlength=50 /><br>
  47. 输入要写入EKEY的口 令:<INPUT id="EkeyPassword" VALUE="" TYPE=password maxlength=32><br>
  48. <br>
  49. <button class="button" onclick="writeLoginInfoToEkey()">写入EKEY</button>
  50. <br>
  51. </center>
  52. </body>
  53. </html>