<head runat="server">
<title>无标题页</title>
<script language="javascript" type="text/javascript">
function ShowDiv(obj,divName)
{
var x,y;
var oleft=parseInt(obj.offsetLeft);
var otop=parseInt(obj.offsetTop);
while(obj=obj.offsetParent){
otop+=obj.offsetTop;
oleft+=obj.offsetLeft;
}
x=oleft-4;
y=otop+18;
var obj=document.getElementById(divName);
obj.style.position = "absolute";
obj.style.left = x.toString()+"px";
obj.style.top = y.toString()+"px";
obj.style.display="";
}
function HideDiv(divName)
{
var obj=document.getElementById(divName);
obj.style.display="none";
}
</script>
</head>
<body>
<form id="form1" runat="server">
<div>
<table>
<tr>
<td>
用户:</td>
<td>
<input id="Text1" οnkeydοwn="if(event.keyCode==13)event.keyCode=9" style="border-right: 1px;
border-top: 1px; border-left: 1px; width: 100px; border-bottom: 1px; height: 18px;
border: 1px solid #999" type="text" size="14" name="UserName" οnfοcus="ShowDiv(this,'divRemName');HideDiv('divRemPwd');"></td>
<td width="8">
</td>
<td>
密码:</td>
<td>
<input id="Password1" οnkeydοwn="if(event.keyCode==13)event.keyCode=9" style="border-right: 1px;
border-top: 1px; border-left: 1px; width: 100px; border-bottom: 1px; height: 18px;
border: 1px solid #999" type="password" size="14" name="UserPass" οnfοcus="ShowDiv(this,'divRemPwd');HideDiv('divRemName');"></td>
<td width="8">
</td>
</tr>
</table>
</div>
<div id="divRemName" style="display:none;color:#666666"><input type="checkbox" id="chkRemName" name="chkRemName" value="checkbox">记住用户名
</div>
<div id="divRemPwd" style="display:none;color:#666666"><input type="checkbox" id="chkRemPwd" name="chkRemPwd" value="checkbox">记住密码
</div>
</form>
</body>
</html>