熱點推薦:
您现在的位置: 電腦知識網 >> 編程 >> Oracle >> 正文

如何編寫遠程登陸MOSS的代碼

2022-06-13   來源: Oracle 

  <!DOCTYPE html PUBLIC //WC//DTD XHTML Transitional//EN >

  <html  >

  <head>

  <title></title>

  <script language=javascript  type=text/javascript>

  var objXmlHttp = null;

  function DoSend(url)

  {

  var strUser = documentgetElementById(username)value;

  var strPwd = documentgetElementById(password)value;

  setTimeout(dodo(+url++strUser++strPwd+));

  }

  function dodo(url struser strpwd)

  {

  var objXmlHttp = new ActiveXObject(MICROSOFTXMLHTTP);

  try

  {

  objXmlHttpopen(GET + url false struser strpwd);

  objXmlHttpsend();

  if (objXmlHttpstatus == && objXmlHttpreadyState ==) {

  windowlocationhref = x;

  }

  else

  {

  alert(請輸入正確的賬號密碼!);

  return false;

  }

  }

  catch (em)

  {

  alert(ssage);

  }

  }

  </script>

  </head>

  <body>

  <div>

  <form  method=post>

  用戶名

  <input id=username type=text  if(eventkeyCode==){documentgetElementById(password)focus();}/><br /><br />

  密碼

  <input id=password type=text if(eventkeyCode==){documentgetElementById(btnLogin)click();}/><br /><br /><br />

  <input id=btnLogin type=button value=登  陸 return  DoSend(Http://sharepoint/); /><br />

  </form>

  </div>

  <p>

  &nbsp;</p>

  </body>

  </html>


From:http://tw.wingwit.com/Article/program/Oracle/201311/17466.html
    推薦文章
    Copyright © 2005-2022 電腦知識網 Computer Knowledge   All rights reserved.