邮局V3登录代码

    请复制如下信息,将内容黏贴至.txt文件中,并将文件更改成.jsp格式。

<%@ page language="java"  session="false" %>
<%@ page language="java" pageEncoding="UTF-8" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<body>
<title>邮局登陆</title>
<script>
function c35login(){
var username  = document.getElementById("username").value;
        if (username == null || username==''){
 return;
        }
        var password  = document.getElementById("password").value;        
        if (password == null || password==''){
          return;
        }
        if ( username.indexOf("@")==-1){
          return;
        }
var domain = username.split("@")[1];
document.getElementById("service").value='http://mail.'+domain+'/Sofia.jsp';
document.getElementById("c35loginform").submit();
}
</script>
<div class="loginform">
<form id="c35loginform" name="c35loginform" action="verifylogin" method="post">
    <input type="hidden" id="service" name="service" value="" />        
    <input type="hidden" id="system" name="system" value="mail" />
<table align="center" border="0" cellpadding="0" cellspacing="0">
<tr>
<th align="right">账 号:</th>
<td><input id="username" name="username" type="text" maxlength="50" tabindex="1" autocomplete="off" value="" class="login_input"><font font="12px"> &nbsp;(请输入全称如:user@domain.com)</font></td>
</tr>
<tr>
<th align="right">密 码:</th>
<td><input id="password" name="password" type="password" tabindex="2" class="login_input" style="font-size:18px;"></td>
</tr>
<tr>
            <th></th>
<td><input type="button" value="登 录" onclick="c35login();" class="login_btn"></td>
</tr>
</table>
</form>
</div>
</body>
</html>
 

Copyright ©三五互联35.COM)All rights reserved