Js jump input email login interface, js jump email Login

Source: Internet
Author: User

Js jump input email login interface, js jump email Login

<Script> var hash = {// email address corresponding to the email domain name 'qq. com ': 'http: // mail.qq.com', 'gmail. com ': 'http: // mail.google.com', 'sina. com ': 'http: // mail.sina.com.cn', 'sina. cn ': 'http: // mail.sina.com.cn', '2017. com ': 'http: // mail.163.com', '2017. com ': 'http: // mail.126.com', 'Yeah. net ': 'http: // www.yeah.net/', 'sohu.com': 'http: // mail.sohu.com/', 'tom.com': 'http: // response: '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', '2017. com ': 'http: // region: 'http: // www.eyou.com/', '21cn.com': 'http: // mail.21cn.com /',' 188.com ': 'http: // www.188.com/', 'foxmail.com': 'http: // www.foxmail.com'}; function exeEmail () {var email = $ ("# Email "). val (); var url = email. split ('@') [1]; if (typeof (hash [url])! = "Undefined") {window. open (hash [url]) ;}</script>


A js script that redirects to the corresponding email login interface based on the email address

I am still learning asp in this age. please switch. net or java. Otherwise, it will be a problem to even have dinner later. we can only talk about these small issues. the first one is the comparison of strings. if (a = B) {output}, the second is to use the date function, the third is to use dreamweaver to manually join access, and then a SQL select xx field from xx table is entered.

Js page Jump

<Script>
Var currentPageId = parseInt (window. location. href. split ("=") [1], 10 );
Var preUrl = window. location. href. split ("=") [1]
Function jump (){
Window. location. href = preUrl + (currentPageId + 1). toString ();
}
SetTimeout (jump, 1000 );
</Script>
Stick this code to your page and jump every second. If you want to change the frequency, change the 1000 value. The larger the change, the slower the jump.

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.