📄 default.aspx
字号:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<title>Login Page</title>
<script type="text/javascript" language="javascript" src="js/login.js"></script>
<style type="text/css">
body{
margin:0px;
background-image: url(image/bbb.jpg);
background-repeat: no-repeat;
height:623px;
width:1000px;
}
<LINK rel="stylesheet" type="text/css" href="css/round.css" />
<link rel="stylesheet" type="text/css" href="css/default.css">
#apDiv1 {
left:499px;
top:14px;
width:155px;
height:19px;
z-index:1050;
}
.STYLE1 {
color: #FF00FF;
font-family: "宋体";
font-size: 36px;
font-weight: bold;
}
#massage_box{ position:absolute; left:expression((body.clientWidth-500)/2); top:expression((body.clientHeight-85)/2); width:280px; height:185px;filter:dropshadow(color=#666666,offx=3,offy=3,positive=2); z-index:2; visibility:hidden}
#mask{ position:absolute; top:0; left:0; width:expression(body.scrollWidth); height:expression(body.scrollHeight); background:#666; filter:ALPHA(opacity=60); z-index:1; visibility:hidden}
.massage{border:#036 solid; border-width:1 1 3 1; width:95%; height:95%; background:#fff; color:#036; font-size:12px; line-height:150%}
.header{background:#036; height:10%; font-family:Verdana, Arial, Helvetica, sans-serif; font-size:12px; padding:3 5 0 5; color:#fff}
</style>
<script src="Scripts/AC_RunActiveContent.js" type="text/javascript"></script>
<!--实现层移动-->
<script language="javascript" type="text/javascript">
var Obj=''
document.onmouseup=MUp
document.onmousemove=MMove
function MDown(Object){
Obj=Object.id
document.all(Obj).setCapture()
pX=event.x-document.all(Obj).style.pixelLeft;
pY=event.y-document.all(Obj).style.pixelTop;
}
function MMove(){
if(Obj!=''){
document.all(Obj).style.left=event.x-pX;
document.all(Obj).style.top=event.y-pY;
}
}
function MUp(){
if(Obj!=''){
document.all(Obj).releaseCapture();
Obj='';
}
}
</script>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /></head>
<body style="text-align: left">
<center><div style="text-align:center; font-size:40px">
<strong>在线考试系统</strong></div></center>
<form id="form1" runat="server">
<!--加一个半透明层<div id="doing" style="filter:alpha(opacity=50);-moz-opacity:0.3;opacity:0.3;background-color:#000;width:111%; height:1014px;z-index:1000;position: absolute;left:0px;top:1px;display:none;overflow: hidden;">
</div>-->
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<div id="massage_box" style="left: 348px; top: 239px"> <div class="massage">
<div class="header" onmousedown="MDown(massage_box)"> <div style="display:inline; width:150px; position:absolute"> 用户登录 </div>
<span onclick="massage_box.style.visibility='hidden'; mask.style.visibility='hidden'" style="float:right; display:inline; cursor:hand">× </span> </div>
<table style="border:hidden; border-style:hidden;align:center;" cellpadding="0" cellspacing="0">
<tr><br/><td style="width: 91px; height: 23px" align="right">用户名:</td>
<td align="left" colspan="2" style="height: 23px">
<asp:TextBox ID="userName" runat="server" Font-Size="10px" Width="130px" ></asp:TextBox></td>
</tr>
<tr><td style="width: 91px; height: 22px" align="right">密 码:</td>
<td align="left" colspan="2" style="height: 22px">
<asp:TextBox ID="userPwd" runat="server" TextMode="Password" Width="130px" Font-Size="10px" ></asp:TextBox></td>
</tr>
<tr><td style="width: 91px" align="right"> 身 份:</td>
<td align="left" colspan="2">
<asp:DropDownList ID="DDLtype" runat="server" Width="135px" Font-Size="10px">
<asp:ListItem Value="学生">学生</asp:ListItem>
<asp:ListItem Value="教师">教师</asp:ListItem>
<asp:ListItem Value="管理员">管理员</asp:ListItem>
</asp:DropDownList></td>
</tr>
<tr><td style="width: 91px" align="right">验证码:</td><td align="left"><asp:TextBox ID="TextBox1" runat="server" Width="70px" Font-Size="10px" MaxLength="6"></asp:TextBox><a href="#" onclick=""></a></td>
<td align="left" style="width: 102px">
<img src="CheckCode.aspx" height="25" width="60"/></td>
</tr>
<tr>
<td colspan="3">
<asp:Button ID="BtnLogin" runat="server" Text=" 登 陆 " OnClick="BtnLogin_Click"/> <input id="BttCancel" type="button" value=" 取 消 " onclick="ShowNo()" /></td>
</tr>
</table> </div> </div>
<div id="mask"> </div>
<span onclick="mask.style.visibility='visible';massage_box.style.visibility='visible'" style="cursor:hand"> <a href="#"><img src="image/login.jpg" alt="" width="170" height="39" /> </a> </span>
</form>
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -