笔记20230218

<!DOCTYPE html>
<!-- saved from url=(0060)http://demo.cssmoban.com/cssthemes5/cpts_1121_brc/index.html -->
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>网络与计算中心</title>
<link href="./index_files/style.css" rel="stylesheet" type="text/css" media="all">

<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<script type="text/javascript">
function mySubmit(){
var username = document.getElementById("username").value;
var password = document.getElementById("password").value;

if(username == "admin" && password == "admin"){
alert("登录成功!");
} else {
alert("账号或密码错误!");
}
}
</script>
</head>
<body>

<!-- contact-form -->
<div class="message warning">
<div class="inset">
<div class="login-head">
<h1 style="font-weight:bold">sunyuan</h1>
<div class="alert-close"> </div>
</div>
<form>
<li>
<input type="text" id="username" class="text" onfocus="this.value = &#39;&#39;;" >
</li>
<div class="clear"> </div>
<li>
<input type="password" id="password" onfocus="this.value = &#39;&#39;;" >
</li>
<div class="clear"> </div>
<div class="submit">
<input type="submit" value="提交" onclick="mySubmit()">
<h4><a href="http://www.hust.edu.cn">忘记密码?</a></h4>
<div class="clear"> </div>
</div>

</form>
</div>
</div>

<div class="clear"> </div>
<!--- footer --->
<div class="footer">
<p>Copyright © 2014.</p>
</div>


</body></html>

 

body{
font-family: 'Droid Sans', sans-serif;
font-size:100%;
/*background: url(../images/bg.jpg);*/
background: url(../bg2.jpg);
background-attachment: fixed;
background-position: center;
background-size: cover;
/*background-repeat: no-repeat;*/
}

posted on 2023-02-18 19:54  sunseine  阅读(9)  评论(0编辑  收藏  举报

导航