標籤:http io cti re c ar
//跳轉到指定的郵箱登入頁面
$(".btn_actemail").click(function () {
var uurl = $(".hide_email").val();
uurl = gotoEmail(uurl);
if (uurl != "") {
$(".toopen").attr("href", "http://"+uurl);
$(".toopen")[0].click();
} else {
alert("抱歉!未找到對應的郵箱登入地址,請自己登入郵箱查看郵件!");
}
});
//功能:根據使用者輸入的Email跳轉到相應的電子郵箱首頁
function gotoEmail($mail) {
$t = $mail.split(‘@‘)[1];
$t = $t.toLowerCase();
if ($t == ‘163.com‘) {
return ‘mail.163.com‘;
} else if ($t == ‘vip.163.com‘) {
return ‘vip.163.com‘;
} else if ($t == ‘126.com‘) {
return ‘mail.126.com‘;
} else if ($t == ‘qq.com‘ || $t == ‘vip.qq.com‘ || $t == ‘foxmail.com‘) {
return ‘mail.qq.com‘;
} else if ($t == ‘gmail.com‘) {
return ‘mail.google.com‘;
} else if ($t == ‘sohu.com‘) {
return ‘mail.sohu.com‘;
} else if ($t == ‘tom.com‘) {
return ‘mail.tom.com‘;
} else if ($t == ‘vip.sina.com‘) {
return ‘vip.sina.com‘;
} else if ($t == ‘sina.com.cn‘ || $t == ‘sina.com‘) {
return ‘mail.sina.com.cn‘;
} else if ($t == ‘tom.com‘) {
return ‘mail.tom.com‘;
} else if ($t == ‘yahoo.com.cn‘ || $t == ‘yahoo.cn‘) {
return ‘mail.cn.yahoo.com‘;
} else if ($t == ‘tom.com‘) {
return ‘mail.tom.com‘;
} else if ($t == ‘yeah.net‘) {
return ‘www.yeah.net‘;
} else if ($t == ‘21cn.com‘) {
return ‘mail.21cn.com‘;
} else if ($t == ‘hotmail.com‘) {
return ‘www.hotmail.com‘;
} else if ($t == ‘sogou.com‘) {
return ‘mail.sogou.com‘;
} else if ($t == ‘188.com‘) {
return ‘www.188.com‘;
} else if ($t == ‘139.com‘) {
return ‘mail.10086.cn‘;
} else if ($t == ‘189.cn‘) {
return ‘webmail15.189.cn/webmail‘;
} else if ($t == ‘wo.com.cn‘) {
return ‘mail.wo.com.cn/smsmail‘;
} else if ($t == ‘139.com‘) {
return ‘mail.10086.cn‘;
} else {
return ‘‘;
}
};