📄 email.js
字号:
<!--
function check(input){
if(input.mailSelect.options.selectedIndex==0){
alert("warning:Please select the mailbox!!");
return false;}
if(input.name.value==""){
alert("warning:the username shold not be empty!");
input.name.focus();
return false;}
if(input.password.value=="" || input.password.value.length<3){
alert("warning:please input the passward!");
input.password.focus();
return false;}
else{go();
return false;}}
function makeURL(){
var objForm=document.mailForm;
var intIndex=objForm.mailSelect.options.selectedIndex;
var varInfo=objForm.mailSelect.options[intIndex].value; /*获取的表单中邮件服务器及用户账号和密码信息*/
var arrayInfo=varInfo.split(';'); /*将以上获取的信息进行分割,并赋给数组变量*/
var strName=objForm.name.value,varpassword=objForm.password.value;
var length=arrayInfo.length,strProvider=arrayInfo[0],strIdName=arrayInfo[1],varPassName=arrayInfo[2];
if(length==3){
var strUrl=strProvider+'?'+strIdName+'='+strName+'&'+varPassName+'='+varpassword; /*合并字符串,得到形如“http://mail.sina.com.cn/cgi-bin/log...”的字符串型URL*/
}
else{
if(arrayInfo[3]=='suffix') strName+='@'+arrayInfo[4]
var strUrl='<form name="tmpForm" action="'+strProvider+'" method="post"><input type="hidden" name="'+strIdName+'" value="'+strName+'"><input type="hidden" name="'+varPassName+'" value="'+varpassword+'">';
if(arrayInfo[3]=='hidden') strUrl+='<input type="hidden" name="'+arrayInfo[4]+'" value="'+arrayInfo[5]+'">'
if(arrayInfo[4]=='hidden') strUrl+='<input type="hidden" name="'+arrayInfo[5]+'" value="'+arrayInfo[6]+'">'
if(arrayInfo[4]=='func') strUrl+='<input type="hidden" name="func" value="'+arrayInfo[5]+'">';
strUrl+='</form>';
//var strUrl='<form name="tmpForm" action="'+strProvider+'" method="post"><input type="hidden" name="'+strIdName+'" value="'+strName+'"><input type="hidden" name="'+varPassName+'" value="'+varpassword+'"></form>';
//var strUrl='<form name="tmpForm" action="'+strProvider+'" method="post"><input type="hidden" name="'+strIdName+'" value="'+strName+'"><input type="hidden" name="'+varPassName+'" value="'+varpassword+'"></form>';
//if(arrayInfo[3]=='hidden') strUrl+='<input type="hidden" name="'+arrayInfo[4]+'" value="'+arrayInfo[5]+'">'
//strUrl+='</form>';
//document.write(strName);
//document.write("********");
//document.write(varpassword);
//document.write("********");
//document.write(strProvider);
//document.write("********");
//document.write(varPassName);
//document.write("********");
//document.write(arrayInfo[3]);
//document.write("********");
//document.write(arrayInfo[4]);
//document.write("********");
//document.write(arrayInfo[5]);
//document.write("********");
//document.write('+strUrl+');
//document.write("********");
}
return strUrl;
}
function go(){
var strLocation=makeURL();
if(strLocation.indexOf('<form name="tmpForm"')!=-1){/*对于只能用“post”来获取表单数据的邮箱使用自动提交的临时表单*/
outWin=window.open('','','scrollbars=yes,menubar=yes,toolbar=yes,location=yes,status=yes,resizable=yes');
doc=outWin.document;
doc.open('text/html');
doc.write('<html><head><meta http-equiv="Content-Type" content="text/html; charset=gb2312"><title>E-mail Login</title></head><body onload="document.tmpForm.submit()">');
doc.write('<p align="center" style="font-size: 14px; color: #FF0000">Well come the e-mail access system,please wait......</p>'+strLocation+'</body></html>');
doc.close();
}
else window.open(strLocation,'','scrollbars=yes,menubar=yes,toolbar=yes,location=yes,status=yes,resizable=yes');
}
//function ClearPass(){
//document.mailForm.password.value="";
//}
function News_Window(theURL,winName,features) {
window.open(theURL,winName,features);
}
//-->
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -