日期:2014-05-16  浏览次数:20430 次

搜狐企业邮箱中的调用代码
这是搜狗企业邮局给的登陆代码,怎么才能够不用自己输入用户名和密码,而是直接调用我的网站的用户数据登陆呢?

<script>
<!--
function   smchecksubmit()   {
  var   frm   =   document.forms[ 'smlogin '];
  if   (frm.elements[ 'id '].value   ==   ' ')   {
    alert( "请输入用户名 ");
    return   false;
  }
  if   (frm.elements[ 'domain '].value   ==   ' ')   {
    alert( "请输入域名 ");
    return   false;
  }
  if   (frm.elements[ 'password '].value   ==   ' ')   {
    alert( "请输入密码 ");
    return   false;
  }
  //   根据是否采用ssl,   决定submit的目的地
  if   (frm.ssl.checked)   {
    frm.action   =   "https://cmail.sogou.com/control/login ";
  }
  return   true;
}
 
function   smforgetpass()   {
  var   frm   =   document.forms[ 'smlogin '];
  if   (frm.elements[ 'domain '].value   ==   ' ')   {
    alert( "请输入域名 ");
    return;
  }
  frm.action   =   "http://cmail.sogou.com/control/forgetpass ";
  frm.submit();
}
//-->
</script>
<form   name=smlogin   method=post   action=http://cmail.sogou.com/control/login   onSubmit= "return   (smchecksubmit()); "   target=_self>
<table   width= "200 "   height= "30 "   border= "0 "   cellpadding= "0 "   cellspacing= "0 "   bgcolor= "#FFFF99 "   style= "font:   Arial;font-size:14px; ">
<tr   bgcolor= "#6DA7D1 "> <td> 登录搜狗企业邮箱系统 </td>
</tr>
</table>
<table   width= "200 "   height= "90 "   border= "0 "   cellpadding= "4 "   cellspacing= "0 "   style= "font:Arial;font-size:14px; ">
<tr>
<td   bgcolor= "#C8DEEE "> 用户  
    <input   type=text   name=id   size=8   value= " "   style= "height:   18px;_height   /**/:   24px;font-size:   100%;width:   80px;padding-left:   2px;padding-top:   4px;border:   1px   solid   #C7C6C4;font-size:   13px;   height:22px; ">
    cctv.org
    <input   type=hidden   name= "domain "   size= "10 "   value=robogame.org> </td> </tr>
<tr>
<td   bgcolor= "#C8DEEE "> 密码  
    <input   type=password   name=password   size=8   style= "height:   18px;_height   /**/:   24px;font-size:   100%;width:   80px;padding-left:   2px;padding-top:   4px;border:   1px   solid   #C7C6C4;font-size:   13px;   height:22px; ">
  <input   class=btn1   type=submit   value=登录   style= "width:   70px;height:24px;line-height:   20px;background-color:#dbdbdb;cursor:   pointer; "> </td>
</tr>
<tr> <td   bgcolor= "#C8DEEE