js控制邮箱跳转

复制代码
function LoginEmail(email) {
    var emailType = new Array(new Array("@163.com", "http://mail.163.com/"), new Array("@126.com", "http://www.126.com/"), new Array("@qq.com", "http://mail.qq.com/cgi-bin/loginpage"), new Array("@vip.qq.com", "http://mail.qq.com/cgi-bin/loginpage"), new Array("@gmail.com", "https://mail.google.com/"), new Array("@yahoo.com", "http://mail.cn.yahoo.com/"), new Array("@hotmail.com", "http://www.hotmail.com/"), new Array("@sina.com", "http://mail.sina.com.cn/"), new Array("@sina.cn", "http://mail.sina.com.cn/"), new Array("@vip.sina.com", "http://mail.sina.com.cn/"), new Array("@my3ia.sina.com", "http://mail.sina.com.cn/"), new Array("@139.com", "http://mail.139.com/"), new Array("@tom.com", "http://mail.tom.com/"), new Array("@21cn.com", "http://mail.21cn.com/"), new Array("@sogou.com", "http://mail.sogou.com/"), new Array("@189.cn", "http://webmail5.189.cn/webmail/"), new Array("@yeah.net", "http://www.yeah.net/"), new Array("@sohu.com", "http://mail.sohu.com/"), new Array("@vip.sohu.com", "http://mail.sohu.com/"), new Array("@foxmail.com", "http://mail.qq.com/cgi-bin/loginpage"));
    var redirectUrl = "http://www.hao123.com";
    if (emailType.length > 0) {
        for (var i = 0; i < emailType.length; i++) {
            if (email.indexOf(emailType[i][0]) > -1) {
                if (emailType.length)
                    redirectUrl = emailType[i][1];
                break;
            }
        }
    }
    if (redirectUrl != '')
        window.open(redirectUrl);
}
复制代码

 

posted on 2013-09-23 16:56  都是脚本惹的祸  阅读(884)  评论(0)    收藏  举报

编辑推荐:
· 深入理解 C# 异步编程:同步、Task.Wait () 与 await 的本质区别
· WPF 引用 ASP.NET Core 的 AOT 版本
· 通过 Canvas 将后端发来的一帧帧图片渲染成“视频”的实现过程
· 当加密ID需要变成Guid:为什么我选择了AES-CBC而非GCM?
· 基于 epoll 的协程调度器——零基础深入浅出 C++20 协程
阅读排行:
· .NET周刊【8月第1期 2025-08-03】
· Manus快速搭建个人网站
· 这套 Java 监控系统太香了!我连夜给项目加上了
· 【译】GPT-5 现已在 Visual Studio 中可用
· 千亿消息“过眼云烟”?Kafka把硬盘当内存用的性能魔法,全靠这一手!

导航

< 2025年8月 >
27 28 29 30 31 1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
31 1 2 3 4 5 6

统计

点击右上角即可分享
微信分享提示