Jump to the corresponding email logon Page Based on the email address (go)

Source: Internet
Author: User

// Jump to the logon page of the specified email address
$ (". Btn_actemail"). Click (function (){
VaR uurl = $ (". hide_email"). Val ();
Uurl = gotoemail (uurl );
If (uurl! = ""){
$ (". Toopen"). ATTR ("href", "http: //" + uurl );
$ (". Toopen") [0]. Click ();
} Else {
Alert ("Sorry! The corresponding email logon address is not found. Please log on to your mailbox to view the email! ");
}
});

// Function: Jump to the corresponding email homepage Based on the email entered by the user
Function gotoemail ($ mail ){
$ T = $ mail. Split ('@') [1];
$ T = $ T. tolowercase ();
If ($ T = '2014. com '){
Return 'mail .163.com ';
} Else if ($ T = 'vip .163.com '){
Return 'vip .163.com ';
} Else if ($ T = '2014. 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 = '2014. com '){
Return 'www .188.com ';
} Else if ($ T = '2014. com '){
Return 'mail .10086.cn ';
} Else if ($ T = '2014. cn '){
Return 'webmail15 .189.cn/webmail ';
} Else if ($ T = 'Wo .com.cn '){
Return 'mail .wo.com.cn/smsmail ';
} Else if ($ T = '2014. com '){
Return 'mail .10086.cn ';
} Else {
Return '';
}
};

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.