1 Star 0 Fork 1

reloadProject/java_ee

forked from Mavis/java_ee 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
index.html 3.05 KB
一键复制 编辑 原始数据 按行查看 历史
Mavis 提交于 2020-05-12 04:35 . first commit
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<link rel="stylesheet" href="style.css">
<script>
function confire()
{
var username=document.getElementById("user").value;
var spanmsg=document.getElementById("usermsg").value;
var tipelement=document.getElementById("tip");
if(username.length==0|spanmsg.length==0)
{
tipelement.innerText=("用户名或密码不能为空!");
return;
}
if(username=="tom"&spanmsg=="123")
{
window.open();
}
}
</script>
</head>
<body>
<div class="t">
<div class="h">
<div class="logo"><img src="images/login_logo.png" /></div>
<a href="" target="_blank" class="help">帮助</a>
</div>
</div>
<div class="c">
<div class="box" style="right:60px; top:60px;" id="box">
<ul class="tab" id="tab">
<li class="current">帐号登录</li>
<li class="dragbar" id="dragbar"></li>
</ul>
<!-- 账号密码登录-->
<div class="boxc" id="tab_via_acct">
<h3>用户登录</h3>
<div class="text_item">
<input type="text" class="text" id="user" style="ime-mode:disabled" autocomplete="off" placeholder="用户名" onfocus="this.className='text_f'" onblur="this.className='text'" />
<div class="pop" style="display:none;" id="pop"></div>
</div>
<form name='form_login' method="post" action="">
<div class="text_item">
<input type="hidden" class="text" name="user" value="" />
<input type="password" class="text" id="usermsg" name="password" placeholder="密码" onfocus="this.className='text_f'" onblur="this.className='text'" />
</div>
<div class="bl">
<span style="float:left">
<input type="hidden" name="login_ssl" value="0" />
<p id="tip" style="color:red;font-family:宋体;clear: both;"></p>
</span>
<span class="blt">
<a href="" target="_self">忘记密码</a>
</span>
</div>
<div class="btnb">
<!-- 登录按钮 -->
<input type="button" name="submit" class="btn" value="登 录" style="float:right" onclick="confire()"/>
<div style="clear:both"></div>
</div>
</form>
</div>
</div>
<div class="f" id="f" style="display:none;"></div>
<div class="login_drag" id="drag_target"></div>
</div>
<div class="b">西南石油大学</div>
</body>
</html>
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
HTML
1
https://gitee.com/reloadproject/java_ee.git
git@gitee.com:reloadproject/java_ee.git
reloadproject
java_ee
java_ee
master

搜索帮助