邮箱的登陆界面,选择登陆到不同类型的邮箱 编程怎么实现

jAVA Web SSH 专栏收录该内容
11 篇文章 0 订阅

法一:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
02<html>
03  <head>
04    <title>qiqi.html</title>
05  
06    <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
07    <meta http-equiv="description" content="this is my page">
08    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
09    
10    <!--<link rel="stylesheet" type="text/css" href="./styles.css">-->
11  <script language="javascript" type="text/javascript">
12  function MyBlur(obj){
13  
14  if(document.all.mailcheck.value=="1"){
15   var m_suffix1 = document.getElementByIdx_x("m_163");
16   m_suffix1.style.display = 'inline';
17   
18   var m_suffix2 = document.getElementByIdx_x("m_126");
19   m_suffix2.style.display = "none";
20   var m_suffix3 = document.getElementByIdx_x("m_sina");
21   m_suffix3.style.display = "none";
22   
23   document.all.input_name.name="username";
24   document.all.input_password.name="password";
25   document.all.form.action="http://reg.163.com/CheckUser.jsp";
26   
27  }else if(document.all.mailcheck.value=="2"){
28   var m_suffix1 = document.getElementByIdx_x("m_163");
29   m_suffix1.style.display = 'none';
30   
31   var m_suffix2 = document.getElementByIdx_x("m_126");
32   m_suffix2.style.display = "inline";
33   var m_suffix3 = document.getElementByIdx_x("m_sina");
34   m_suffix3.style.display = "none";
35   
36   
37      document.all.input_name.name="username";
38   document.all.input_password.name="password";
39   document.all.form.action="https://reg.163.com/logins.jsp";
40   
41     }else if(document.all.mailcheck.value=="3"){
42   
43   var m_suffix1 = document.getElementByIdx_x("m_163");
44   m_suffix1.style.display = 'none';
45   
46   var m_suffix2 = document.getElementByIdx_x("m_126");
47   m_suffix2.style.display = "none";
48   var m_suffix3 = document.getElementByIdx_x("m_sina");
49   m_suffix3.style.display = "inline";
50   
51      document.all.input_name.name="u";
52   document.all.input_password.name="psw";
53   document.all.form.action="http://mail.sina.com.cn/cgi-bin/login.cgi";
54   
55     }
56  
57  }
58  </script>
59  
60  </head>
61  
62  <body>
63    <form name="form" id="form" method="post" action="http://reg.163.com/CheckUser.jsp" onSubmit="return sendmail()">
64       账号:<input type="text" name="username" id="input_name"/>
65       <p id="m_163" style="display:inline;">
66       @163.com
67    </p>
68       <p id="m_126" style="display:none;">
69       @126.com
70    </p>
71       <p id="m_sina" style="display:none;">
72       @sina.com
73    </p>
74       <br>
75       密码:<input type="password" name="password"  id="input_password"/><br>
76       请选择邮箱:
77       <label>
78         <select name="mailcheck" id="mailcheck" onChange="MyBlur()">
79           <option value="1">@163.com</option>
80           <option value="2">@126.com</option>
81           <option value="3">@sina.com</option>
82         </select>
83       </label>
84       <br>
85     <input type="submit" value="登陆"/>
86       <input type="reset" value="重置"/>
87    </form>
88  </body>
89</html>

[2].[图片] 1.jpg 跳至 [1] [2] [3]







法二:

编程怎么实现啊  用VB
像 www.hao123.com 这样的导航网站 首页的上面有个邮箱的登陆界面 可根据需要选择登陆到不同类型的邮箱  如 126  sina  yahoo  编程怎么实现啊
2008-03-30 03:15 提问者采纳
将以下代码复制好后保存为mail.htm
然后运行即可
所有代码如下:

<FORM name=gomail οnsubmit="return clickMail()" action="" method=post id=FrLgn><INPUT type=hidden name=url><INPUT type=hidden name=username><INPUT type=hidden name=type><INPUT type=hidden name=password><INPUT type=hidden name=domain><INPUT type=hidden value=http://cn.mail.yahoo.com/inset.html?rr=529401327 name=.done><INPUT type=hidden name=user><INPUT type=hidden name=pass><INPUT type=hidden value=true name=enterVip><INPUT type=hidden name=UserName><INPUT type=hidden name=Password><INPUT type=hidden name=u><INPUT type=hidden name=psw><INPUT type=hidden name=login><INPUT type=hidden name=LoginName><INPUT type=hidden name=usr><INPUT type=hidden name=func><INPUT type=hidden name=login_name><INPUT type=hidden name=login_password><INPUT type=hidden name=BackURL><INPUT type=hidden value=http://mail.google.com/mail?ui=html&zy=l name=continue><INPUT type=hidden name=Email><INPUT type=hidden name=Passwd><INPUT type=hidden name=domainname><INPUT type=hidden value=false name=firstlogin><INPUT type=hidden name=starttime><INPUT type=hidden name=p2><INPUT type=hidden name=passwd><INPUT type=hidden name=id><INPUT type=hidden name=m><INPUT type=hidden name=mpass><INPUT type=hidden name=loginid><INPUT type=hidden name=appid><INPUT type=hidden name=ru><INPUT type=hidden name=eru><INPUT type=hidden name=fl><INPUT type=hidden name=ct><INPUT type=hidden name=vr><INPUT type=hidden name=sg><INPUT type=hidden name=vwriter><INPUT type=hidden name=vpassword>用户名:<input tabIndex=1 size=15 name=uName> 邮箱:<select tabIndex=2 size=1 name=domains><option selected >请选择邮箱</option><option value=163>@163.com 网易</option><option value=sina>@sina.com 新浪</option><option value=126>@126.com 网易</option><option value=yahoo>@yahoo.com.cn</option><option value=21cn>@21cn.com</option><option value=sohu>@sohu.com 搜狐</option><option value=tom>@tom.com</option><option value=188>@188.com</option><option value=gmail>@gmail.com</option><option value=yahoocn>@yahoo.cn</option><option value=yeah>@yeah.net</option><option value=baidu>百度账号</option><option value=chinaren>ChinaRen校友录</option></select> 密码:<input tabIndex=3 type=password size=12 name=uPw> <input   tabIndex=4 type=submit value=" 登录 " name=sub style="height:1.67em;width:5.0em;font-size:13px"><INPUT type=hidden value=submit name=cmd>
</form>
<script language="javascript">
function clickMail()
{var gm=document.gomail
var vDomain=gm.domains
var vName=gm.uName
var vPw=gm.uPw
if(vDomain.value==""){alert("您没有选择邮箱!")
 vDomain.focus()
 return false}
if(vName.value==""){alert("用户名不能为空!")
 vName.focus()
 return false
}
if(vPw.value==""){alert("密码不能为空!")
 vPw.focus()
 return false}
switch(vDomain.value){
case "163":
gm.action="http://reg.163.com/CheckUser.jsp"
gm.url.value="http://fm163.163.com/coremail/fcg/ntesdoor2?lightweight=1&verifycookie=1&language=-1&style=15"
gm.username.value=vName.value
gm.password.value=vPw.value
gm.enterVip.value=''
break
case "126":
gm.action="http://entry.126.com/cgi/login"
gm.domain.value="126.com"
gm.user.value=vName.value
gm.pass.value=vPw.value
break
case "yeah":
gm.action="http://entry.yeah.net/cgi/login"
gm.domain.value="yeah.net"
gm.user.value=vName.value
gm.pass.value=vPw.value
break
case "188":
gm.action="http://reg.mail.188.com/servlet/coremail/login?language=0&style=1"
gm.user.value=vName.value
gm.pass.value=vPw.value
break
case "sohu":
gm.action="http://passport.sohu.com/login.jsp"
gm.url.value=""
gm.UserName.value=vName.value
gm.Password.value=vPw.value
gm.id.value=vName.value
gm.username.value=vName.value
gm.password.value=vPw.value
gm.m.value=vName.value
gm.passwd.value=vPw.value
gm.mpass.value=vPw.value
gm.loginid.value=vName.value+"@sohu.com"
gm.fl.value="1"
gm.vr.value="1|1"
gm.appid.value="1000"
gm.ru.value="http://login.mail.sohu.com/servlet/LoginServlet"
gm.eru.value="http://login.mail.sohu.com/login.jsp"
gm.ct.value="1173080990"
gm.sg.value="5082635c77272088ae7241ccdf7cf062"
break
case "yahoo":
gm.action="http://edit.bjs.yahoo.com/config/login"
gm.login.value=vName.value
gm.passwd.value=vPw.value
break
case "yahoocn":
gm.action="http://edit.bjs.yahoo.com/config/login"
gm.login.value=vName.value+"@yahoo.cn"
gm.passwd.value=vPw.value
break
case "tom":
gm.action="http://bjweb.163.net/cgi/163/login_pro.cgi"
gm.user.value=vName.value
gm.pass.value=vPw.value
break
case "21cn":
gm.action="http://passport.21cn.com/maillogin.jsp"
gm.LoginName.value=vName.value
gm.passwd.value=vPw.value
gm.domainname.value="21cn.com"
gm.UserName.value=vName.value+'@21cn.com'
break
case "sina":
gm.action="http://mail.sina.com.cn/cgi-bin/login.cgi"
gm.u.value=vName.value
gm.psw.value=vPw.value
break
case "gmail":
gm.action="https://www.google.com/accounts/ServiceLoginAuth"
gm.Email.value=vName.value
gm.Passwd.value=vPw.value
break
case "chinaren":
gm.action="http://passport.sohu.com/login.jsp"
gm.loginid.value=vName.value+"@chinaren.com"
gm.passwd.value=vPw.value
gm.fl.value="1"
gm.vr.value="1|1"
gm.appid.value="1005"
gm.ru.value="http://profile.chinaren.com/urs/setcookie.jsp?burl=http://alumni.chinaren.com/"
gm.ct.value="1174378209"
gm.sg.value="84ff7b2e1d8f3dc46c6d17bb83fe72bd"
break
case "tianya":
gm.action="http://www.tianya.cn/user/loginsubmit.asp"
gm.vwriter.value=vName.value
gm.vpassword.value=vPw.value
break
case "baidu":
gm.action="http://passport.baidu.com/?login"
gm.username.value=vName.value
gm.password.value=vPw.value
break
}
vPw.value=""
return true}
</script>
  • 0
    点赞
  • 0
    评论
  • 0
    收藏
  • 扫一扫,分享海报

©️2022 CSDN 皮肤主题:大白 设计师:CSDN官方博客 返回首页
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、C币套餐、付费专栏及课程。

余额充值