exchange 自定义邮箱登陆界面
2008-08-05 14:44
1091 查看
<script type="text/javascript">
function plogin_onclick() {
var Location="http://mail.*****/exchange/"; //你的Exchange默认登录地址( 填入你自己的域名)
var serpath=http://mail.*****/; //当输入错误时,返回的地址。
var uname=document.getElementById("user").value;
var upwd=document.getElementById("pwd").value;
if (document.getElementById("user").value==""){
alert("帐号不能为空!");
document.getElementById("user").focus();
return false;
}
if (document.getElementById("pwd").value==""){
alert("密码不能为空!");
document.getElementById("pwd").focus();
return false;
}
var auth = new ActiveXObject("msxml2.xmlhttp");
auth.open("get",Location,false,document.getElementById("user").value ,document.getElementById("pwd").value );
auth.send();
switch(auth.status){
case 200:
form1.action=Location;
form1.submit;
break;
case 401:
alert("帐号无效或密码错误。");
form1.action=serpath;
form1.submit;
break;
default:
alert("服务器发生错误,请稍后再试!");
}
}
</script>
</head>
<body topmargin="0" onload="document.forms[0].user.focus();">
<form id="form1" action="" onsubmit="return plogin_onclick()">
<div align="center">
<table width="863" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="100"> </td>
<td> </td>
</tr>
<tr>
<td width="585" height="433"><img src="images/mail_left.jpg" width="585" height="433" /></td>
<td><table width="279" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="279" height="152"><img src="images/mail_top.jpg" width="279" height="152" /></td>
</tr>
<tr>
<td width="279" height="30" background="images/mail_user.jpg">
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="62"></td>
<td width="217" align="left">
<input id="user" type="text" maxlength="20" style="width:90px;" /></td>
</tr>
</table>
</td>
</tr>
<tr>
<td width="279" height="34" background="images/mail_pwd.jpg">
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="62"></td>
<td width="217" align="left">
<input id="pwd" type="password" maxlength="20" style="width:90px;" /></td>
</tr>
</table>
</td>
</tr>
<tr>
<td width="279" height="217" background="images/mail_login.jpg" valign="top">
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="279" height="20" align="center"> </td>
</tr>
<tr>
<td height="197" valign="top">
<input type="image" src="images/mail_btn.jpg" width="86" height="33" />
</table>
</td>
</tr>
</table></td>
</tr>
</table>
</div>
</form>
</body>
</html>
function plogin_onclick() {
var Location="http://mail.*****/exchange/"; //你的Exchange默认登录地址( 填入你自己的域名)
var serpath=http://mail.*****/; //当输入错误时,返回的地址。
var uname=document.getElementById("user").value;
var upwd=document.getElementById("pwd").value;
if (document.getElementById("user").value==""){
alert("帐号不能为空!");
document.getElementById("user").focus();
return false;
}
if (document.getElementById("pwd").value==""){
alert("密码不能为空!");
document.getElementById("pwd").focus();
return false;
}
var auth = new ActiveXObject("msxml2.xmlhttp");
auth.open("get",Location,false,document.getElementById("user").value ,document.getElementById("pwd").value );
auth.send();
switch(auth.status){
case 200:
form1.action=Location;
form1.submit;
break;
case 401:
alert("帐号无效或密码错误。");
form1.action=serpath;
form1.submit;
break;
default:
alert("服务器发生错误,请稍后再试!");
}
}
</script>
</head>
<body topmargin="0" onload="document.forms[0].user.focus();">
<form id="form1" action="" onsubmit="return plogin_onclick()">
<div align="center">
<table width="863" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="100"> </td>
<td> </td>
</tr>
<tr>
<td width="585" height="433"><img src="images/mail_left.jpg" width="585" height="433" /></td>
<td><table width="279" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="279" height="152"><img src="images/mail_top.jpg" width="279" height="152" /></td>
</tr>
<tr>
<td width="279" height="30" background="images/mail_user.jpg">
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="62"></td>
<td width="217" align="left">
<input id="user" type="text" maxlength="20" style="width:90px;" /></td>
</tr>
</table>
</td>
</tr>
<tr>
<td width="279" height="34" background="images/mail_pwd.jpg">
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="62"></td>
<td width="217" align="left">
<input id="pwd" type="password" maxlength="20" style="width:90px;" /></td>
</tr>
</table>
</td>
</tr>
<tr>
<td width="279" height="217" background="images/mail_login.jpg" valign="top">
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="279" height="20" align="center"> </td>
</tr>
<tr>
<td height="197" valign="top">
<input type="image" src="images/mail_btn.jpg" width="86" height="33" />
</table>
</td>
</tr>
</table></td>
</tr>
</table>
</div>
</form>
</body>
</html>
相关文章推荐
- Exchange邮箱登陆界面添加验证码功能完美解决方案 推荐
- WP8(微软)手机登陆Exchange 2013邮箱帐号的配置
- Exchange系列—自定义资源邮箱的属性
- 如何使用MFC编写自定义UI界面【附高仿QQ 2014登陆界面范例程序】
- 如何修改Exchange邮箱的英文界面
- HTML写的第一个邮箱登陆的界面
- iphone(苹果)手机登陆Exchange 2013邮箱帐号的配置
- 作业:用HTML制作邮箱登陆界面
- exchange2013 自定义OWA界面
- 邮箱的登陆界面,选择登陆到不同类型的邮箱 编程怎么实现
- html编写邮箱登陆界面
- 自定义登陆界面样式
- 邮箱登陆界面占位符(placeholder)jQuery法
- Exchange 2013 的会议室邮箱用户一直无法正常登陆。
- WP8(微软)手机登陆Exchange 2013邮箱帐号的配置
- exchange邮箱的”单点登陆“
- HTML写的第一个邮箱登陆界面
- 面对Exchange邮箱的英文界面,我们应该这么办!
- CAS 客户端自定义用户登陆界面
- Win7中通过修改注册表自定义开机登陆界面的背景图片图文教程