登录各种邮箱代码
2008-08-31 10:28 Iron 阅读(1188) 评论(0) 编辑 收藏 举报<script language="javascript">
function clickMail()
{var gm=document.gomail
var vDomain=gm.domains
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="http://entry.126.com/cgi/login"
gm.domain.value="126.com"
gm.user.value=vName.value
gm.pass.value=vPw.value
break
case "yeah":
gm.action="http://entry.yeah.net/cgi/login"
gm.domain.value="yeah.net"
gm.user.value=vName.value
gm.pass.value=vPw.value
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="http://edit.bjs.yahoo.com/config/login"
gm.login.value=vName.value
gm.passwd.value=vPw.value
break
case "yahoocn":
gm.action="http://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.username.value=vName.value
gm.password.value=vPw.value
break
}
vPw.value=""
return true}
</script>
<div>
<FORM id=FrLgn name=gomail onSubmit="return clickMail()" action=""
method=post><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=http://cn.mail.yahoo.com/inset.html?rr=529401327 name=.done><INPUT
type=hidden name=user><INPUT type=hidden name=pass><INPUT type=hidden value=true
name=enterVip><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 value=http://mail.google.com/mail?ui=html&zy=l
name=continue><INPUT type=hidden name=Email><INPUT type=hidden
name=Passwd><INPUT type=hidden name=domainname><INPUT type=hidden value=false
name=firstlogin><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=vpassword>用户名:<INPUT tabIndex=1 size=15
name=uName> 邮箱:<SELECT tabIndex=2 size=1 name=domains><OPTION
selected>请选择邮箱</OPTION><OPTION value=163>@163.com 网易</OPTION><OPTION
value=sina>@sina.com 新浪</OPTION><OPTION value=126>@126.com 网易</OPTION><OPTION
value=yahoo>@yahoo.com.cn</OPTION><OPTION value=21cn>@21cn.com</OPTION><OPTION
value=sohu>@sohu.com 搜狐</OPTION><OPTION value=tom>@tom.com</OPTION><OPTION
value=188>@188.com</OPTION><OPTION value=gmail>@gmail.com</OPTION><OPTION
value=yahoocn>@yahoo.cn</OPTION><OPTION
value=yeah>@yeah.net</OPTION><OPTION>-请选择其他服务-</OPTION><OPTION
value=baidu>百度账号</OPTION><OPTION value=chinaren>ChinaRen校友录</OPTION></SELECT>
密码:<INPUT tabIndex=3 type=password size=12 name=uPw> <INPUT style="FONT-SIZE: 13px; WIDTH: 5em; HEIGHT: 1.67em" tabIndex=4 type=submit value=" 登录 " name=sub><INPUT
type=hidden value=submit name=cmd>
</FORM>
</div>
function clickMail()
{var gm=document.gomail
var vDomain=gm.domains
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="http://entry.126.com/cgi/login"
gm.domain.value="126.com"
gm.user.value=vName.value
gm.pass.value=vPw.value
break
case "yeah":
gm.action="http://entry.yeah.net/cgi/login"
gm.domain.value="yeah.net"
gm.user.value=vName.value
gm.pass.value=vPw.value
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="http://edit.bjs.yahoo.com/config/login"
gm.login.value=vName.value
gm.passwd.value=vPw.value
break
case "yahoocn":
gm.action="http://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.username.value=vName.value
gm.password.value=vPw.value
break
}
vPw.value=""
return true}
</script>
<div>
<FORM id=FrLgn name=gomail onSubmit="return clickMail()" action=""
method=post><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=http://cn.mail.yahoo.com/inset.html?rr=529401327 name=.done><INPUT
type=hidden name=user><INPUT type=hidden name=pass><INPUT type=hidden value=true
name=enterVip><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 value=http://mail.google.com/mail?ui=html&zy=l
name=continue><INPUT type=hidden name=Email><INPUT type=hidden
name=Passwd><INPUT type=hidden name=domainname><INPUT type=hidden value=false
name=firstlogin><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=vpassword>用户名:<INPUT tabIndex=1 size=15
name=uName> 邮箱:<SELECT tabIndex=2 size=1 name=domains><OPTION
selected>请选择邮箱</OPTION><OPTION value=163>@163.com 网易</OPTION><OPTION
value=sina>@sina.com 新浪</OPTION><OPTION value=126>@126.com 网易</OPTION><OPTION
value=yahoo>@yahoo.com.cn</OPTION><OPTION value=21cn>@21cn.com</OPTION><OPTION
value=sohu>@sohu.com 搜狐</OPTION><OPTION value=tom>@tom.com</OPTION><OPTION
value=188>@188.com</OPTION><OPTION value=gmail>@gmail.com</OPTION><OPTION
value=yahoocn>@yahoo.cn</OPTION><OPTION
value=yeah>@yeah.net</OPTION><OPTION>-请选择其他服务-</OPTION><OPTION
value=baidu>百度账号</OPTION><OPTION value=chinaren>ChinaRen校友录</OPTION></SELECT>
密码:<INPUT tabIndex=3 type=password size=12 name=uPw> <INPUT style="FONT-SIZE: 13px; WIDTH: 5em; HEIGHT: 1.67em" tabIndex=4 type=submit value=" 登录 " name=sub><INPUT
type=hidden value=submit name=cmd>
</FORM>
</div>