zoukankan      html  css  js  c++  java
  • 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);
    }
  • 相关阅读:
    C#正则表达式判断输入日期格式是否正确
    Linq 总结
    sql存储过程
    uploadify多文件上传实例--C#
    Get W3WP List when Debugging
    SharePoint 2010 BI:Chart Web Part
    Versioning SharePoint 2010 Workflow In VS
    Multilingual User Interface (MUI) In SharePoint 2013
    Create Custom Modification Form In VS 2012-Part1
    Create Custom Modification Form In VS 2012-Part2
  • 原文地址:https://www.cnblogs.com/lccnblog/p/3335152.html
Copyright © 2011-2022 走看看