• aspx页面里实现多邮箱登陆(本实例还未能很好实现,请高手赐教!!)


    <html xmlns="http://www.w3.org/1999/xhtml">
    <head runat="server">
        <title></title>
    
        <script type="text/javascript" src="js/jquery-1.4.2.min.js"></script>
    
        <script type="text/javascript">
            function clickMail() {
    
                if ($("#site").val() == "") {
                    alert("您没有选择邮箱!");
                    $("#site").focus();
                    return false;
                }
                if ($("#uName").val() == "") {
                    alert("用户名不能为空!")
                    $("#uName").focus()
                    return false
                }
                if ($("#uPw").val() == "") {
                    alert("密码不能为空!")
                    $("#uPw").focus()
                    return false
                }
                var str = "onsubmit='return clickMail()'";
                var gm = document.getElementById("gomail");
                switch ($("#site").val()) {
                    case "163.com":
                        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 = $("#uName").val();
                        gm.password.value = $("#uPw").val();
                        gm.enterVip.value = '';
                        break;
                    case "126.com":
                        gm.action = "https://reg.163.com/logins.jsp";
                        gm.domain.value = "126.com";
                        gm.username.value = $("#uName").val();
                        gm.password.value = $("#uPw").val();
                        gm.url.value = "http://entry.mail.126.com/cgi/ntesdoor?lightweight%3D1%26verifycookie%3D1%26language%3D0%26style%3D-1";
                        break;
                    case "yeah.com":
                        gm.action = "https://reg.163.com/logins.jsp";
                        gm.domain.value = "yeah.net";
                        gm.username.value = $("#uName").val();
                        gm.password.value = $("#uPw").val();
                        gm.url.value = "http://entry.mail.yeah.net/cgi/ntesdoor?lightweight%3D1%26verifycookie%3D1%26style%3D-1";
                        break;
                    case "188.com":
                        gm.action = "http://reg.mail.188.com/servlet/coremail/login?language=0&style=1";
                        gm.user.value = $("#uName").val();
                        gm.pass.value = $("#uPw").val();
                        break;
                    case "sohu.com":
                        gm.action = "http://passport.sohu.com/login.jsp";
                        gm.url.value = "";
                        gm.UserName.value = $("#uName").val();
                        gm.Password.value = $("#uPw").val();
                        gm.id.value = $("#uName").val()
                        gm.username.value = $("#uName").val();
                        gm.password.value = $("#uPw").val();
                        gm.m.value = $("#uName").val();
                        gm.passwd.value = $("#uPw").val();
                        gm.mpass.value = $("#uPw").val();
                        gm.loginid.value = $("#uName").val();
                        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.com":
                        gm.action = "https://edit.bjs.yahoo.com/config/login";
                        gm.login.value = $("#uName").val();
                        gm.passwd.value = $("#uPw").val();
                        break;
                    case "yahoocn.com":
                        gm.action = "https://edit.bjs.yahoo.com/config/login";
                        gm.login.value = $("#uName").val();
                        gm.passwd.value = $("#uPw").val();
                        break;
                    case "tom.com":
                        gm.action = "http://bjweb.163.net/cgi/163/login_pro.cgi";
                        gm.user.value = $("#uName").val();
                        gm.pass.value = $("#uPw").val();
                        break;
                    case "21cn.com":
                        gm.action = "http://passport.21cn.com/maillogin.jsp";
                        gm.LoginName.value = $("#uName").val();
                        gm.passwd.value = $("#uPw").val();
                        gm.domainname.value = "21cn.com";
                        gm.UserName.value = $("#uName").val();
                        break;
                    case "sina.com":
                        gm.action = "http://mail.sina.com.cn/cgi-bin/login.cgi";
                        gm.u.value = $("#uName").val();
                        gm.psw.value = $("#uPw").val();
                        break;
                    case "gmail.com":
                        gm.action = "https://www.google.com/accounts/ServiceLoginAuth";
                        gm.Email.value = $("#uName").val();
                        gm.Passwd.value = $("#uPw").val();
                        break;
                    case "chinaren.com":
                        gm.action = "http://passport.sohu.com/login.jsp";
                        gm.loginid.value = $("#uName").val() + "@chinaren.com";
                        gm.passwd.value = $("#uPw").val();
                        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.com":
                        gm.action = "http://www.tianya.cn/user/loginsubmit.asp";
                        gm.vwriter.value = $("#uName").val();
                        gm.vpassword.value = $("#uPw").val();
                        break;
                    case "baidu.com":
                        gm.action = "http://passport.baidu.com/?login";
                        gm.u.value = "http://passport.baidu.com/center";
                        gm.username.value = $("#uName").val();
                        gm.password.value = $("#uPw").val();
                        break;
                    case "xiaonei.com":
                        gm.action = "http://login.xiaonei.com/Login.do";
                        gm.email.value = $("#uName").val();
                        gm.password.value = $("#uPw").val();
                        break
                    case "51com.com":
    
                        gm.action = "http://passport.51.com/login.5p";
                        gm.passport_51_user.value = $("#uName").val();
                        gm.passport_51_password.value = $("#uPw").val(); ;
                        gm.gourl.value = "http%3A%2F%2Fmy.51.com%2Fwebim%2Findex.php";
                }
                $("#uPw").val("");
                return true;
    
            }
        </script>
    
    </head>
    <body>
        <form name="gomail"  action="" method="post" id="gomail"
        runat="server">
        <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
                name=".intl" value="cn" type="hidden"><input value="ym" name=".src" type="hidden"><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="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="email"><input type="hidden" name="passport_51_user"><!--/--><input type="hidden"
                                                                            name="passport_51_password"><input type="hidden" name="gourl"><input type="hidden"
                                                                                name="Passwd"><input type="hidden" name="vpassword">
        用户名:<input tabindex="1" size="15" name="uName" id="uName">
        邮箱:<select tabindex="2" size="1" name="domainss" id="site"><option value="">请选择邮箱</option>
            <option value="163.com">@163.com 网易</option>
            <option value="126.com">@126.com 网易</option>
            <option value="sina.com">@sina.com 新浪</option>
            <option value="yahoo.com">@yahoo.com.cn</option>
            <option value="yahoocn.com">@yahoo.cn</option>
            <option value="gmail.com">@gmail.com</option>
            <option value="sohu.com">@sohu.com 搜狐</option>
            <option value="tom.com">@tom.com</option>
            <option value="188.com">@188.com</option>
            <option value="21cn.com">@21cn.com</option>
            <option value="yeah.com">@yeah.net</option>
            <option>-请选择其他服务-</option>
            <option value="baidu.com">百度账号</option>
            <option value="chinaren.com">ChinaRen校友录</option>
            <option value="xiaonei.com">校内网</option>
            <option value="51com.com">51.com</option>
        </select>
        密码:<input tabindex="3" type="password" size="12" name="uPw" id="uPw">
        <input onclick="return clickMail()" style="font-size: 13px;  75px; height: 25px" type="submit" value="快速登陆">
        </form>
    </body>
    </html>
    
    
    
    
    
    说明:本实例还不能很好实现,请高手赐教!!

      

  • 相关阅读:
    linux运维、架构之路-Kubernetes离线、二进制部署集群
    linux运维、架构之路-Kubernetes集群部署
    创建SpringMVC项目过程
    Spring AOP使用方式
    Java动态代理
    Java工厂模式解耦 —— 理解Spring IOC
    Neural Turing Machine
    小米路由器mini刷锐捷
    目前深度学习开源数据集整理
    Spring编译后没有xml配置文件解决方法
  • 原文地址:https://www.cnblogs.com/shanlin/p/2227393.html
Copyright © 2020-2023  润新知