JS or jquery in the mailbox jump problem, jump to the designated mailbox (through the Layui Ifram implementation)

Source: Internet
Author: User

Take a note of what you just did.

If you encounter the same problem to solve the problem of the welcome message

var emailtext = $ ("#TextBoxEmail"). Val ();//Get the value to intercept
var arr = emailtext.split ("@");//Intercept mailbox String
var emailtype = arr[1];//Mailbox Type
//*******QQ Mailbox ********//
if (Emailtype = = "Qq.com") {
layer.msg (' sending mail ', {
time:10000,//Wait Time
//If the server is unresponsive within 20 seconds, jump to the error page
icon:16, shade:0.01
}),
setTimeout (function () {
layer.msg (' Mail sent successfully ', {icon:6});
//layer.msg (' message sent failed ', {icon:5});
setTimeout (function () {
//* * * * Enter the QQ mailbox *****//
Layer.open ({
Type:2,
Title:false,
closebtn:0,//Do not show Close button
shade: [0],
Area : [' 340px ', ' 215px '],
offset: ' RB ',///lower right corner popup
time:2000,//auto-off after 2 seconds
Anim:2,
content: [' transition/qqemail.html ', ' no '],//iframe's url,no does not show scroll bars
end:function () {//here for demonstration
Layer.open ({
Type:2,
title: ' Many times, we want to maximize the look, like this page. ',
Shadeclose:true,
Shade:false,
Maxmin:true,//Turn on Maximize minimize button
Area : [' 1050px ', ' 670px '],
content: ' https://mail.qq.com/'
});
}
});
}, +);
}, 10000);
}
//*******qq Mailbox End ********//
//*******nsu Mailbox ********//
if (arr = = "nsu.edu.cn") {
layer.msg (' sending mail ', {
time:10000,//Wait Time
//If the server is unresponsive within 20 seconds, jump to the error page
icon:16, shade:0.01
}),
setTimeout (function () {
layer.msg (' Mail sent successfully ', {icon:6});
//layer.msg (' message sent failed ', {icon:5});
setTimeout (function () {

Layer.open ({
Type:2,
Title:false,
closebtn:0,//Do not show Close button
shade: [0],
Area : [' 340px ', ' 215px '],
offset: ' RB ',///lower right corner popup
time:2000,//auto-off after 2 seconds
Anim:2,
content: [' transition/nsuemail.html ', ' no '],//iframe's url,no does not show scroll bars
end:function () {//here for demonstration
Layer.open ({
Type:2,
title: ' Many times, we want to maximize the look, like this page. ',
Shadeclose:true,
Shade:false,
Maxmin:true,//Turn on Maximize minimize button
Area : [' 1050px ', ' 670px '],
content: ' https://mail.nsu.edu.cn/'
});
}
});
}, +);
}, 10000);
}
//*******nsu Mailbox End ********//

163 email ********//
if (Emailtype = = "163.com") {
Layer.msg (' sending mail ', {
time:10000,//Wait Time
If the server is unresponsive within 20 seconds, jump to the error page
Icon:16, shade:0.01
}),
SetTimeout (function () {
Layer.msg (' Mail sent successfully ', {icon:6});
Layer.msg (' message sent failed ', {icon:5});
SetTimeout (function () {

Layer.open ({
Type:2,
Title:false,
closebtn:0,//Do not show Close button
shade: [0],
Area : [' 340px ', ' 215px '],
offset: ' RB ',///lower right corner popup
time:2000,//auto-off after 2 seconds
Anim:2,
content: [' transition/163email.html ', ' no '],//iframe's url,no does not show scroll bars
end:function () {//here for demonstration
Layer.open ({
Type:2,
title: ' Many times, we want to maximize the look, like this page. ',
Shadeclose:true,
Shade:false,
Maxmin:true,//Turn on Maximize minimize button
Area : [' 1050px ', ' 670px '],
content: ' https://mail.163.com/'
});
}
});
}, +);
}, 10000);
}
//*******163 Mailbox End ********//

Outlook Mailbox ********//
if (Emailtype = = "Outlook.com") {
Layer.msg (' sending mail ', {
time:10000,//Wait Time
If the server is unresponsive within 20 seconds, jump to the error page
Icon:16, shade:0.01
}),
SetTimeout (function () {
Layer.msg (' Mail sent successfully ', {icon:6});
Layer.msg (' message sent failed ', {icon:5});
SetTimeout (function () {

Layer.open ({
Type:2,
Title:false,
closebtn:0,//Do not show Close button
shade: [0],
Area : [' 340px ', ' 215px '],
offset: ' RB ',///lower right corner popup
time:2000,//auto-off after 2 seconds
Anim:2,
content: [' transition/outlookemail.html ', ' no '],//iframe's url,no does not show scroll bars
end:function () {//here for demonstration
Layer.open ({
Type:2,
title: ' Many times, we want to maximize the look, like this page. ',
Shadeclose:true,
Shade:false,
Maxmin:true,//Turn on Maximize minimize button
Area : [' 1050px ', ' 670px '],
content: ' https://outlook.live.com/owa/'
});
}
});
}, +);
}, 10000);
}
//*******outlook Mailbox End ********//

Sina email ********//not consider Sina VIP mailbox
if (Emailtype = = "Sina.com") {
Layer.msg (' sending mail ', {
time:10000,//Wait Time
If the server is unresponsive within 20 seconds, jump to the error page
Icon:16, shade:0.01
}),
SetTimeout (function () {
Layer.msg (' Mail sent successfully ', {icon:6});
Layer.msg (' message sent failed ', {icon:5});
SetTimeout (function () {

Layer.open ({
Type:2,
Title:false,
closebtn:0,//Do not show Close button
shade: [0],
Area : [' 340px ', ' 215px '],
offset: ' RB ',///lower right corner popup
time:2000,//auto-off after 2 seconds
Anim:2,
content: [' transition/sinaemail.html ', ' no '],//iframe's url,no does not show scroll bars
end:function () {//here for demonstration
Layer.open ({
Type:2,
title: ' Many times, we want to maximize the look, like this page. ',
Shadeclose:true,
Shade:false,
Maxmin:true,//Turn on Maximize minimize button
Area : [' 1050px ', ' 670px '],
content: ' https://mail.sina.com.cn/'
});
}
});
}, +);
}, 10000);
}
//******* sina email End ********//
//******* If you enter a mailbox that is not supported by the system ********//
if (emailtype! = "qq.com" && emailtype! = "163.com" && emailtype! = "Sina.com" && Emailtype! = "Outlook.com" && emailtype! = "nsu.edu.cn") {
//mailbox does not support prompt box
layer.confirm (' sorry. This system does not support the mailbox at this time ', {
Icon:5,
btn: [' OK ']//button
}, Function () {
layer.msg (' must support later ');
//Empty the unsupported email here, ^-^ not implemented at this time??????
$ ("#TextBoxEmail"). val () = "";
});

}

JS or jquery in the mailbox jump problem, jump to the designated mailbox (through the Layui Ifram implementation)

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.