JS implementation Click to jump to login mailbox

Source: Internet
Author: User

Registration process often need to fill in the mailbox, and log in to verify the mailbox. The use of JS can be implemented for different mailboxes to click Login verification, the following is the implementation of the scheme, very simple

Code mailbox Domain Name data

var hash = { ' qq.com ': ' http://mail.qq.com ', ' gmail.com ': ' http://mail.google.com ', ' sina.com ': ' http://mail.sina.com.cn ', ' 163.com ': ' http://mail.163.com ', ' 126.com ': ' http://mail.126.com ', ' yeah.net ': ' http://www.yeah.net/', ' sohu.com ': ' http://mail.sohu.com/', ' tom.com ': ' http://mail.tom.com/', ' sogou.com ': ' http://mail.sogou.com/', ' 139.com ': ' http://mail.10086.cn/', ' hotmail.com ': ' http://www.hotmail.com ', ' live.com ': ' http://login.live.com/', ' live.cn ': ' http://login.live.cn/', ' live.com.cn ': ' http://login.live.com.cn ', ' 189.com ': ' http://webmail16.189.cn/webmail/', ' yahoo.com.cn ': ' http://mail.cn.yahoo.com/', ' yahoo.cn ': ' http://mail.cn.yahoo.com/', ' eyou.com ': ' http://www.eyou.com/', ' 21cn.com ': ' http://mail.21cn.com/', ' 188.com ': ' http://www.188.com/', ' foxmail.com ': ' http://www.foxmail.com ', ' outlook.com ': ' http://www.outlook.com '}Get the mailbox domain and replace the link

//Click Login emailvar _mail = $ ( "# Email ") . Val (. Split ( ' @ ' ) [< Span class= "CRAYON-CN" >1];     //get mailbox domain for (var J in hash){ If(j = = _mail){ $(". Js_login_mail"). Show().     attr("href", hash[_mail]); //Replace login link     }}

JS implementation Click to jump to login mailbox

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.