|
发表于 2003-5-8 15:35:07
|
显示全部楼层
帮我也看看
如下
<html>
<head>
<title>联创宽带_用户登录__________________</title>
<STYLE TYPE="text/css">
<!--
.inputText
{
font-family: verdana, arial, helvetica, sans-serif;
font-size: 11px;
color: #3333ff;
font-weight: bold;
width: 140px;
padding-top: 1px;
padding-bottom: 1px;
}
-->
</style>
<script language="javascript">
<!--
function validate_form()
{
validity = true;
if (!check_empty(document.subform.username.value))
{
validity = false;
alert('请输入用户名!');
document.subform.username.focus();
return validity;
}
if (!check_empty(document.subform.password.value))
{
validity = false;
alert('请输入密码!');
document.subform.password.focus();
return validity;
}
if( check_empty(document.subform.username.value) && check_empty(document.subform.password.value) )
{
for(i = 0;i < subform.length;i++)
{
var tempobj = subform.elements;
if (tempobj.type.toLowerCase() == "submit" || tempobj.type.toLowerCase() == "reset")
tempobj.disabled = true;
}
}
return validity;
}
function check_empty(text)
{
return text.length > 0;
}
-->
</script>
</head>
<body bgcolor="#DDF9FF" scroll="no" leftMargin=0 topMargin=0 marginwidth="0" marginheight="0" onload="javascript:document.subform.username.focus();">
<!--
<div id="Layer1" style="position: absolute; left: 0; top: 0; width: 230; height: 120; z-index: 1; border: 1 solid #000000">
<table width="100%" border=0 cellpadding=0 cellspacing=0>
<tr STYLE="font-size: 9pt" bgcolor="#6AAFFF" style=cursor:default; onmousedown="x=event.x;y=event.y;setCapture();" onmouseup="releaseCapture();" onmousemove="if(event.button==1)self.moveTo(screenLeft+event.x-x,screenTop+event.y-y);">
<td valign=middle align=left>
<font color=black> 用 户 登 录 </font>
</td>
<td valign=center align=right>
<a href="####">
<img src="image/close.gif" valign=center width="15" height="15" onClick=window.close() border="0" alt="点这里关闭此窗口">
</a>
</td>
</tr>
</table>
-->
<br>
<FORM name="subform" METHOD="OST" ACTION="https://218.3.216.18:8443/examples/servlet/Validate" onsubmit="return validate_form()">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr STYLE="font-size: 9pt">
<td align="center">用户名:<input class="inputText" type="text" size="9" maxlength="32" NAME="username">
<br>
密 码:<input type="password" class="inputText" size="9" maxlength="16" NAME="password">
<!--<input type="hidden" class="inputText" value="xxx" readonly size="9" maxlength="16" NAME="password"> -->
<br>
</td>
</tr>
<tr></tr>
<tr></tr>
<tr STYLE="font-size: 9pt">
<td align="center"><input type="submit" value="登录" size=10>   
<input type="reset" value="重置" size=10>
</td>
</tr>
<tr></tr><tr></tr>
</table>
</div>
</FORM>
</body>
</html> |
|