实现hao123的快捷邮箱登陆
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default2.aspx.cs" Inherits="Default2" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" > <head runat="server"> <title>无标题页</title> </head> <body> <SCRIPT LANGUAGE="JavaScript"> <!-- function log_submit(){ var User = document.mailForm.mail_name.value; var ProNo = document.mailForm.mailSelect.value; var mail_action = ProNo.split(";"); if(mail_action.length > 1) { if(mail_action[1]=="suffix") User += "@"+mail_action[2]; else eval("document.mailForm."+mail_action[1]+".value = ''"+mail_action[2]+"'';"); } var Passwd = document.mailForm.mail_password.value; var Formobj = document.mailForm; function checkUserPass(){ if (User == ""){ alert("请填写用户名"); document.mailForm.mail_name.focus(); return false; } else if (Passwd == ""){ alert("请填写密码"); document.mailForm.mail_password.focus(); return false; } else { return true; } } if (checkUserPass()){ document.mailForm.action = mail_action[0]; document.mailForm.u.value = User; document.mailForm.user.value = User; document.mailForm.LoginName.value = User; document.mailForm.username.value = User; document.mailForm.UserName.value = User; document.mailForm.login_name.value = User; document.mailForm.login.value = User; document.mailForm.psw.value = Passwd; document.mailForm.pass.value = Passwd; document.mailForm.passwd.value = Passwd; document.mailForm.password.value = Passwd; document.mailForm.Password.value = Passwd; document.mailForm.login_password.value = Passwd; document.mailForm.submit(); document.mailForm.mail_password.value = ""; } return false; } //--> </SCRIPT> <form method="post" target="_blank" name="mailForm" onsubmit=''return log_submit();''> <table cellspacing="0" align="left" style="border:1px solid #c0c0c0;font-size:13px"> <tr style="color:#ffffff;background:#336699;"><td align="left">常用邮箱快速登录</td><td align="right"></td></tr> <tr height=22> <input type="hidden" name="u" value=""> <input type="hidden" name="user" value=""> <input type="hidden" name="LoginName" value=""> <input type="hidden" name="username" value=&qu |
凌众科技专业提供服务器租用、服务器托管、企业邮局、虚拟主机等服务,公司网站:http://www.lingzhong.cn 为了给广大客户了解更多的技术信息,本技术文章收集来源于网络,凌众科技尊重文章作者的版权,如果有涉及你的版权有必要删除你的文章,请和我们联系。以上信息与文章正文是不可分割的一部分,如果您要转载本文章,请保留以上信息,谢谢! |