不同服务提供商的邮箱地址,比如要用到gmail,就必须先打开URL: http:www.gmail.com
现在不用那么做也可以登陆
<script type="text/javascript">
function clickMail()
{
var gm=document.gomail;
var vDomain=gm.domainss;
var vName=gm.uName;
var vPw=gm.uPw;

if(vDomain.value=="")
{
alert("您没有选择邮箱!");
vDomain.focus();
return false;
}
if(vName.value=="")
{
alert("用户名不能为空!");
vName.focus();
return false;
}
if(vPw.value==""){
alert("密码不能为空!");
vPw.focus();
return false;
}
switch(vDomain.value){
case "163":
gm.action="http://reg.163.com/CheckUser.jsp";
gm.url.value="http://fm163.163.com/coremail/fcg/ntesdoor2?lightweight=1&verifycookie=1&language=-1&style=15";
gm.username.value=vName.value;
gm.password.value=vPw.value;
gm.enterVip.value='';
break;
case "126":
gm.action="https://reg.163.com/logins.jsp";
gm.domain.value="126.com";
gm.username.value=vName.value +"@126.com";
gm.password.value=vPw.value;
gm.url.value="http://entry.mail.126.com/cgi/ntesdoor?lightweight%3D1%26verifycookie%3D1%26language%3D0%26style%3D-1";
break;
case "yeah":
gm.action="https://reg.163.com/logins.jsp";
gm.domain.value="yeah.net";
gm.username.value=vName.value +"@yeah.net";
gm.password.value=vPw.value;
gm.url.value="http://entry.mail.yeah.net/cgi/ntesdoor?lightweight%3D1%26verifycookie%3D1%26style%3D-1";
break;
case "188":
gm.action="http://reg.mail.188.com/servlet/coremail/login?language=0&style=1";
gm.user.value=vName.value;
gm.pass.value=vPw.value;
break;
case "sohu":
gm.action="http://passport.sohu.com/login.jsp";
gm.url.value="";
gm.UserName.value=vName.value;
gm.Password.value=vPw.value;
gm.id.value=vName.value;
gm.username.value=vName.value;
gm.password.value=vPw.value;
gm.m.value=vName.value;
gm.passwd.value=vPw.value;
gm.mpass.value=vPw.value;
gm.loginid.value=vName.value+"@sohu.com";
gm.fl.value="1";
gm.vr.value="1|1";
gm.appid.value="1000";
gm.ru.value="http://login.mail.sohu.com/servlet/LoginServlet";
gm.eru.value="http://login.mail.sohu.com/login.jsp";
gm.ct.value="1173080990";
gm.sg.value="5082635c77272088ae7241ccdf7cf062";
break;
case "yahoo":
gm.action="https://edit.bjs.yahoo.com/config/login";
gm.login.value=vName.value;
gm.passwd.value=vPw.value;
break;
case "yahoocn":
gm.action="https://edit.bjs.yahoo.com/config/login";
gm.login.value=vName.value+"@yahoo.cn";
gm.passwd.value=vPw.value;
break;
case "tom":
gm.action="http://bjweb.163.net/cgi/163/login_pro.cgi";
gm.user.value=vName.value;
gm.pass.value=vPw.value;
break;
case "21cn":
gm.action="http://passport.21cn.com/maillogin.jsp";
gm.LoginName.value=vName.value;
gm.passwd.value=vPw.value;
gm.domainname.value="21cn.com";
gm.UserName.value=vName.value+'@21cn.com';
break
case "sina":
gm.action="http://mail.sina.com.cn/cgi-bin/login.cgi";
gm.u.value=vName.value;
gm.psw.value=vPw.value;
break;
case "gmail":
gm.action="https://www.google.com/accounts/ServiceLoginAuth";
gm.Email.value=vName.value;
gm.Passwd.value=vPw.value;
break;
case "chinaren":
gm.action="http://passport.sohu.com/login.jsp";
gm.loginid.value=vName.value+"@chinaren.com";
gm.passwd.value=vPw.value;
gm.fl.value="1";
gm.vr.value="1|1";
gm.appid.value="1005";
gm.ru.value="http://profile.chinaren.com/urs/setcookie.jsp?burl=http://alumni.chinaren.com/";
gm.ct.value="1174378209";
gm.sg.value="84ff7b2e1d8f3dc46c6d17bb83fe72bd";
break;
case "tianya":
gm.action="http://www.tianya.cn/user/loginsubmit.asp";
gm.vwriter.value=vName.value;
gm.vpassword.value=vPw.value;
break;
case "baidu":
gm.action="http://passport.baidu.com/?login";
gm.u.value="http://passport.baidu.com/center";
gm.username.value=vName.value;
gm.password.value=vPw.value;
break;
case "xiaonei":
gm.action="http://login.xiaonei.com/Login.do";
gm.email.value=vName.value;
gm.password.value=vPw.value;
break;
case "51com":
gm.action="http://passport.51.com/login.5p";
gm.passport_51_user.value=vName.value;
gm.passport_51_password.value=vPw.value;
gm.gourl.value="http%3A%2F%2Fmy.51.com%2Fwebim%2Findex.php";
break;
}
vPw.value="";
return true;
}
</script>

<form id="FrLgn" method="post" action="" onsubmit="return clickMail()" name="gomail">
<input type="hidden" name="url"/>
<input type="hidden" name="username"/>
<input type="hidden" name="type"/>
<input type="hidden" name="password"/>
<input type="hidden" name="domain"/>
<input type="hidden" value="cn" name=".intl"/>
<input type="hidden" name=".src" value="ym"/>
<input type="hidden" name="user"/>
<input type="hidden" name="pass"/>
<input type="hidden" name="enterVip" value="true"/>
<input type="hidden" name="UserName"/>
<input type="hidden" name="Password"/>
<input type="hidden" name="u"/>
<input type="hidden" name="psw"/>
<input type="hidden" name="login"/>
<input type="hidden" name="LoginName"/>
<input type="hidden" name="usr"/>
<input type="hidden" name="func"/>
<input type="hidden" name="login_name"/>
<input type="hidden" name="login_password"/>
<input type="hidden" name="BackURL"/>
<input type="hidden" name="continue" value="http://mail.google.com/mail?ui=html&zy=l"/>
<input type="hidden" name="Email"/>
<input type="hidden" name="domainname"/>
<input type="hidden" name="firstlogin" value="false"/>
<input type="hidden" name="starttime"/>
<input type="hidden" name="p2"/>
<input type="hidden" name="passwd"/>
<input type="hidden" name="id"/>
<input type="hidden" name="m"/>
<input type="hidden" name="mpass"/>
<input type="hidden" name="loginid"/>
<input type="hidden" name="appid"/>
<input type="hidden" name="ru"/>
<input type="hidden" name="eru"/>
<input type="hidden" name="fl"/>
<input type="hidden" name="ct"/>
<input type="hidden" name="vr"/>
<input type="hidden" name="sg"/>
<input type="hidden" name="vwriter"/>
<input type="hidden" name="email"/>
<input type="hidden" name="passport_51_user"/>
<input type="hidden" name="passport_51_password"/>
<input type="hidden" name="gourl"/>
<input type="hidden" name="Passwd"/>
<input type="hidden" name="vpassword"/>
帐号 <input style="width: 170px;" name="uName" size="13" tabindex="1"/><br/>
邮箱 <select style="width: 170px;" name="domainss" size="1" tabindex="2">
<option selected="">-请选择邮箱-</option>
<option value="163">@163.com 网易</option>
<option value="126">@126.com 网易</option>
<option value="sina">@sina.com 新浪</option>
<option value="yahoo">@yahoo.com.cn</option>
<option value="yahoocn">@yahoo.cn</option>
<option value="gmail">@gmail.com</option>
<option value="sohu">@sohu.com 搜狐</option>
<option value="tom">@tom.com</option>
<option value="188">@188.com</option>
<option value="21cn">@21cn.com</option>
<option value="yeah">@yeah.net</option>
<option>-请选择其他服务-</option>
<option value="baidu">百度账号</option>
<option value="chinaren">ChinaRen校友录</option>
<option value="xiaonei">校内网</option>
<option value="51com">51.com</option>
</select>
<br/>
密码 <input type="password" style="width: 115px;" name="uPw" size="13" tabindex="3"/>
<input type="submit" style="height: 1.67em; width: 4.2em; font-size: 12px;" name="sub" value=" 登录 " tabindex="4"/>
<input type="hidden" name="cmd" value="submit"/>
</form>
现在不用那么做也可以登陆
<script type="text/javascript">
function clickMail()
{
var gm=document.gomail;
var vDomain=gm.domainss;
var vName=gm.uName;
var vPw=gm.uPw;
if(vDomain.value=="")
{
alert("您没有选择邮箱!");
vDomain.focus();
return false;
}
if(vName.value=="")
{
alert("用户名不能为空!");
vName.focus();
return false;
}
if(vPw.value==""){
alert("密码不能为空!");
vPw.focus();
return false;
}
switch(vDomain.value){
case "163":
gm.action="http://reg.163.com/CheckUser.jsp";
gm.url.value="http://fm163.163.com/coremail/fcg/ntesdoor2?lightweight=1&verifycookie=1&language=-1&style=15";
gm.username.value=vName.value;
gm.password.value=vPw.value;
gm.enterVip.value='';
break;
case "126":
gm.action="https://reg.163.com/logins.jsp";
gm.domain.value="126.com";
gm.username.value=vName.value +"@126.com";
gm.password.value=vPw.value;
gm.url.value="http://entry.mail.126.com/cgi/ntesdoor?lightweight%3D1%26verifycookie%3D1%26language%3D0%26style%3D-1";
break;
case "yeah":
gm.action="https://reg.163.com/logins.jsp";
gm.domain.value="yeah.net";
gm.username.value=vName.value +"@yeah.net";
gm.password.value=vPw.value;
gm.url.value="http://entry.mail.yeah.net/cgi/ntesdoor?lightweight%3D1%26verifycookie%3D1%26style%3D-1";
break;
case "188":
gm.action="http://reg.mail.188.com/servlet/coremail/login?language=0&style=1";
gm.user.value=vName.value;
gm.pass.value=vPw.value;
break;
case "sohu":
gm.action="http://passport.sohu.com/login.jsp";
gm.url.value="";
gm.UserName.value=vName.value;
gm.Password.value=vPw.value;
gm.id.value=vName.value;
gm.username.value=vName.value;
gm.password.value=vPw.value;
gm.m.value=vName.value;
gm.passwd.value=vPw.value;
gm.mpass.value=vPw.value;
gm.loginid.value=vName.value+"@sohu.com";
gm.fl.value="1";
gm.vr.value="1|1";
gm.appid.value="1000";
gm.ru.value="http://login.mail.sohu.com/servlet/LoginServlet";
gm.eru.value="http://login.mail.sohu.com/login.jsp";
gm.ct.value="1173080990";
gm.sg.value="5082635c77272088ae7241ccdf7cf062";
break;
case "yahoo":
gm.action="https://edit.bjs.yahoo.com/config/login";
gm.login.value=vName.value;
gm.passwd.value=vPw.value;
break;
case "yahoocn":
gm.action="https://edit.bjs.yahoo.com/config/login";
gm.login.value=vName.value+"@yahoo.cn";
gm.passwd.value=vPw.value;
break;
case "tom":
gm.action="http://bjweb.163.net/cgi/163/login_pro.cgi";
gm.user.value=vName.value;
gm.pass.value=vPw.value;
break;
case "21cn":
gm.action="http://passport.21cn.com/maillogin.jsp";
gm.LoginName.value=vName.value;
gm.passwd.value=vPw.value;
gm.domainname.value="21cn.com";
gm.UserName.value=vName.value+'@21cn.com';
break
case "sina":
gm.action="http://mail.sina.com.cn/cgi-bin/login.cgi";
gm.u.value=vName.value;
gm.psw.value=vPw.value;
break;
case "gmail":
gm.action="https://www.google.com/accounts/ServiceLoginAuth";
gm.Email.value=vName.value;
gm.Passwd.value=vPw.value;
break;
case "chinaren":
gm.action="http://passport.sohu.com/login.jsp";
gm.loginid.value=vName.value+"@chinaren.com";
gm.passwd.value=vPw.value;
gm.fl.value="1";
gm.vr.value="1|1";
gm.appid.value="1005";
gm.ru.value="http://profile.chinaren.com/urs/setcookie.jsp?burl=http://alumni.chinaren.com/";
gm.ct.value="1174378209";
gm.sg.value="84ff7b2e1d8f3dc46c6d17bb83fe72bd";
break;
case "tianya":
gm.action="http://www.tianya.cn/user/loginsubmit.asp";
gm.vwriter.value=vName.value;
gm.vpassword.value=vPw.value;
break;
case "baidu":
gm.action="http://passport.baidu.com/?login";
gm.u.value="http://passport.baidu.com/center";
gm.username.value=vName.value;
gm.password.value=vPw.value;
break;
case "xiaonei":
gm.action="http://login.xiaonei.com/Login.do";
gm.email.value=vName.value;
gm.password.value=vPw.value;
break;
case "51com":
gm.action="http://passport.51.com/login.5p";
gm.passport_51_user.value=vName.value;
gm.passport_51_password.value=vPw.value;
gm.gourl.value="http%3A%2F%2Fmy.51.com%2Fwebim%2Findex.php";
break;
}
vPw.value="";
return true;
}
</script>
<form id="FrLgn" method="post" action="" onsubmit="return clickMail()" name="gomail">
<input type="hidden" name="url"/>
<input type="hidden" name="username"/>
<input type="hidden" name="type"/>
<input type="hidden" name="password"/>
<input type="hidden" name="domain"/>
<input type="hidden" value="cn" name=".intl"/>
<input type="hidden" name=".src" value="ym"/>
<input type="hidden" name="user"/>
<input type="hidden" name="pass"/>
<input type="hidden" name="enterVip" value="true"/>
<input type="hidden" name="UserName"/>
<input type="hidden" name="Password"/>
<input type="hidden" name="u"/>
<input type="hidden" name="psw"/>
<input type="hidden" name="login"/>
<input type="hidden" name="LoginName"/>
<input type="hidden" name="usr"/>
<input type="hidden" name="func"/>
<input type="hidden" name="login_name"/>
<input type="hidden" name="login_password"/>
<input type="hidden" name="BackURL"/>
<input type="hidden" name="continue" value="http://mail.google.com/mail?ui=html&zy=l"/>
<input type="hidden" name="Email"/>
<input type="hidden" name="domainname"/>
<input type="hidden" name="firstlogin" value="false"/>
<input type="hidden" name="starttime"/>
<input type="hidden" name="p2"/>
<input type="hidden" name="passwd"/>
<input type="hidden" name="id"/>
<input type="hidden" name="m"/>
<input type="hidden" name="mpass"/>
<input type="hidden" name="loginid"/>
<input type="hidden" name="appid"/>
<input type="hidden" name="ru"/>
<input type="hidden" name="eru"/>
<input type="hidden" name="fl"/>
<input type="hidden" name="ct"/>
<input type="hidden" name="vr"/>
<input type="hidden" name="sg"/>
<input type="hidden" name="vwriter"/>
<input type="hidden" name="email"/>
<input type="hidden" name="passport_51_user"/>
<input type="hidden" name="passport_51_password"/>
<input type="hidden" name="gourl"/>
<input type="hidden" name="Passwd"/>
<input type="hidden" name="vpassword"/>
帐号 <input style="width: 170px;" name="uName" size="13" tabindex="1"/><br/>
邮箱 <select style="width: 170px;" name="domainss" size="1" tabindex="2">
<option selected="">-请选择邮箱-</option>
<option value="163">@163.com 网易</option>
<option value="126">@126.com 网易</option>
<option value="sina">@sina.com 新浪</option>
<option value="yahoo">@yahoo.com.cn</option>
<option value="yahoocn">@yahoo.cn</option>
<option value="gmail">@gmail.com</option>
<option value="sohu">@sohu.com 搜狐</option>
<option value="tom">@tom.com</option>
<option value="188">@188.com</option>
<option value="21cn">@21cn.com</option>
<option value="yeah">@yeah.net</option>
<option>-请选择其他服务-</option>
<option value="baidu">百度账号</option>
<option value="chinaren">ChinaRen校友录</option>
<option value="xiaonei">校内网</option>
<option value="51com">51.com</option>
</select>
<br/>
密码 <input type="password" style="width: 115px;" name="uPw" size="13" tabindex="3"/>
<input type="submit" style="height: 1.67em; width: 4.2em; font-size: 12px;" name="sub" value=" 登录 " tabindex="4"/>
<input type="hidden" name="cmd" value="submit"/>
</form>


