求一段登陆代码

ssjwhy 2002-07-13 09:07:48
http://www.30-60.com.cn/ 如左边信箱的登陆代码
我想做一个imail信箱的登陆口,哪位高手给一段代码,不胜感激!
...全文
68 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
ceocio 2002-07-15
  • 打赏
  • 举报
回复
up
ceocio 2002-07-13
  • 打赏
  • 举报
回复
<FORM METHOD=post NAME=mailForm
ONSUBMIT="return check(this)" TARGET=_self> <DIV ALIGN=center><SELECT NAME=mailSelect SIZE=1
STYLE="FONT-SIZE: 9pt"> <OPTION selected
select>请选择你的邮箱</OPTION> <OPTION
VALUE=bjweb.163.net/cgi/login;user;pass>163.net电子邮局</OPTION>
<OPTION
VALUE=webmail.21cn.com/NULL/NULL/NULL/NULL/NULL/SignIn.gen;LoginName;passwd;post>21CN.COM邮局</OPTION>
<OPTION
VALUE=freemail.263.net/cgi/login;user;pass>263.net首都在线</OPTION>
<OPTION
VALUE=mail.sina.com.cn/cgi-bin/login;u;psw>新浪(sina.com)</OPTION>
<OPTION
VALUE=freemail.china.com/NULL/NULL/SignIn.gen;LoginName;passwd;post>中华网china.com</OPTION>
<OPTION
VALUE=freemail.sohu.com/_mem_bin/verifpwd.asp;UserName;Password;post;hidden;url;/>搜狐(sohu.com)</OPTION>
<OPTION
VALUE=mw1.elong.com/cgi-bin/weblogon.cgi;username;password;post>e龙(elong)</OPTION>
<OPTION
VALUE=login.chinaren.com/zhs/servlet/Login;username;password;post;hidden;url;http://mail.chinaren.com>中国人</OPTION>
<OPTION
VALUE=login.etang.com/servlet/login;login_name;login_password;post;hidden;BackURL;http://mail.etang.com/cgi/door>亿唐(etang.com)</OPTION>
<OPTION
VALUE=reg.163.com/php/new/in.php?url=/php/new/entermail.php;user;pass;post>网易163.com</OPTION>
<OPTION
VALUE=n2.163.com/cgi/login;user;pass;post>网易netease.com</OPTION>
<OPTION
VALUE=www.126.com/cgi/login;user;pass;post>网易126.com</OPTION>
<OPTION
VALUE=web.yeah.net/cgi/login;user;pass>网易Yeah.net</OPTION>
<OPTION
VALUE=freemail.990.net/prog/login;user;pass>990(990.net)</OPTION>
<OPTION
VALUE=202.106.186.230/extend/newgb1/NULL/NULL/NULL/SignIn.gen;LoginName;passwd;post;hidden;DomainName;email.com.cn>@email.com.cn</OPTION></SELECT>
<BR><FONT SIZE=2>帐 号:</FONT> <SPAN CLASS=small><INPUT
NAME=name ONFOCUS=this.select() SIZE=8
STYLE="BORDER-BOTTOM: 1px solid; BORDER-LEFT: 1px solid; BORDER-RIGHT: 1px solid; BORDER-TOP: 1px solid">
</SPAN><BR><FONT SIZE=2>密 码:</FONT> <INPUT NAME=password
ONFOCUS=this.select() SIZE=8
STYLE="BORDER-BOTTOM: 1px solid; BORDER-LEFT: 1px solid; BORDER-RIGHT: 1px solid; BORDER-TOP: 1px solid"
TYPE=password> <BR><FONT SIZE=2><INPUT CLASS=an NAME=submit2 STYLE="BORDER-BOTTOM: #000000 1px dashed; BORDER-LEFT: #000000 1px dashed; BORDER-RIGHT: #000000 1px dashed; BORDER-TOP: #000000 1px dashed" TYPE=submit VALUE=登录>
<INPUT CLASS=an NAME=reset STYLE="BORDER-BOTTOM: #000000 1px dashed; BORDER-LEFT: #000000 1px dashed; BORDER-RIGHT: #000000 1px dashed; BORDER-TOP: #000000 1px dashed" TYPE=reset VALUE=重置>
<FONT COLOR=#ff3300> <SCRIPT LANGUAGE=javascript>function check(input){
if(input.mailSelect.options.selectedIndex==0){
alert("提示:您忘了选择您的邮箱了!");
return false;}
if(input.name.value==""){
alert("提示:您忘了填写您的账号名了!");
input.name.focus();
return false;}
if(input.password.value=="" || input.password.value.length<3){
alert("提示:您的密码长度小于3字符吗?还是重新填写吧!");
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,varPasswd=objForm.password.value;
var length=arrayInfo.length,strProvider=arrayInfo[0],strIdName=arrayInfo[1],varPassName=arrayInfo[2];
if(length==3){
var strUrl='http://'+strProvider+'?'+strIdName+'='+strName+'&'+varPassName+'='+varPasswd;/*合并字符串,得到形如“http://mail.sina.com.cn/cgi-bin/log...”的字符串型URL*/
}
else{
var strUrl='<form name="tmpForm" action="http://'+strProvider+'" method="post"><input type="hidden" name="'+strIdName+'" value="'+strName+'"><input type="hidden" name="'+varPassName+'" value="'+varPasswd+'">';
if(arrayInfo[4]=='hidden') strUrl+='<input type="hidden" name="'+arrayInfo[5]+'" value="'+arrayInfo[6]+'">'
strUrl+='</form>';
}
return strUrl;
}
function go(){
var strLocation=makeURL();
if(strLocation.indexOf('<form name="tmpForm"')!=-1){/*对于只能用“post”来获取表单数据的邮箱使用自动提交的临时表单*/
outWin=window.open('','','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>邮箱登录</title></head><body onload="document.tmpForm.submit()">');
doc.write('<p align="center">欢迎使用<a href="http://www.bbxy.com">『缘分de天空』</a>电子邮局快速登录系统,请稍候……</p>'+strLocation+'</body></html>');
doc.close();
}
else window.open(strLocation,'','menubar=yes,toolbar=yes,location=yes,status=yes,resizable=yes');
}
//--></SCRIPT> </FONT></FONT></DIV></FORM>

10,606

社区成员

发帖
与我相关
我的任务
社区描述
Web 开发 其他
社区管理员
  • 其他
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧