jackylf 发表于 2007-3-17 23:23:43

大家写一个在别的页面上邮箱登陆的代码可以吗

请大家帮忙写一个可以放在别的页面上可以登陆到自己的邮箱系统的代码(关于winwebmail)的?
谢谢大家了!!!

[ 本帖最后由 jackylf 于 2007-3-17 23:26 编辑 ]

ycwmw 发表于 2007-3-18 08:42:47

放到</head>前部份:

<SCRIPT LANGUAGE=javascript>
<!--
if (top.location !== self.location) {
top.location=self.location;
}

function window_onload() {

      var S = document.getElementById("usernameshow");
      S.focus();
}

function gook() {
      var S;

      S = document.getElementById("usernameshow");
      if (S.value == "")
      {
                alert("用户名不可为空");
                S.focus();
                return ;
      }

      S = document.getElementById("pwshow");
      if (S.value == "")
      {
                alert("密码不可为空");
                S.focus();
                return ;
      }


      S = document.getElementById("usernameshow");
      document.f1.username.value = S.value;
      
      S = document.getElementById("pwshow");
      document.f1.pwhidden.value = encode(S.value, parseInt(document.f1.picnum.value));

      document.f1.submit();
}

function encode(datastr, bassnum) {
      var tempstr;
      var tchar;
      var newdata = "";

      for (var i = 0; i < datastr.length; i++)
      {
                tchar = 65535 + bassnum - datastr.charCodeAt(i);
                tchar = tchar.toString();

                while(tchar.length < 5)
                {
                        tchar = "0" + tchar;
                }

                newdata = newdata + tchar;
      }

      return newdata;
}
//-->
</SCRIPT>

[ 本帖最后由 ycwmw 于 2007-3-18 08:46 编辑 ]

ycwmw 发表于 2007-3-18 08:44:48

这是主代码

<table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#ffffff" class="xlr">
          <form name="f1" method="post" action=http://mail.xxxxxxxx.com/loginchk.asp>(红色处改为你的邮箱地址)
         <input type="hidden" name="username">
         <input type="hidden" name="pwhidden">
         <input type="hidden" name="picnum" value="5743">
         <input type="hidden" name="saveUser">
         <input type="hidden" name="SecEx">
          </form>
      <tr><td height=5></td></tr>
      <tr>
      <td align=center height=25><font color=#6f6f6f><b>用户名: </b></font><input type="text" id="usernameshow" name="usernameshow" maxlength="64" size=12></td>
      </tr>
      <tr>
      <td align=center height=25><font color=#6f6f6f><b>密码: </b></font><input type="password" id="pwshow" name="pwshow" maxlength="32" size=12>
          </td>
      </tr>
      <tr><td colspan="2" align="center" height="30"><inputtype=submit value=" 确定 " ><input name='Reset' type='reset' id='Reset' value=' 清除 '></td>
      </tr>
</TABLE>

[ 本帖最后由 ycwmw 于 2007-3-18 08:49 编辑 ]

jackylf 发表于 2007-3-18 12:02:09

先谢谢,是不是上面2个代码都要使用的啊

rayer 发表于 2007-3-19 12:00:04

不错,只要改action的地址就应该可以了

jackylf 发表于 2007-3-29 21:24:30

我弄了好几次了,就是弄不了啊,点登陆没什么反应的

ashu913 发表于 2007-3-30 14:32:16

:victory: :victory: :victory: :victory: 我也想知道

bjits 发表于 2007-4-4 19:59:54

好贴,先收藏了

dragonhzb 发表于 2007-4-19 14:34:40

用上面的代码怎么登陆不了呀,提示没有loginchk.asp这个文件

sdojohn 发表于 2007-4-24 22:15:35

晕.在WINWEBMAIL的官方就有现在的下载.
页: [1] 2
查看完整版本: 大家写一个在别的页面上邮箱登陆的代码可以吗