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)