您好,登錄后才能下訂單哦!
<script type="text/javascript">
window.onload=function(){
var Id = localStorage.getItem("txtId");
if(Id != null) //如果緩存中有數據,則加載出來 B5教程網
{
document.getElementById("txtId").value = Id;
document.getElementById("txtPwd").value = localStorage.getItem("txtPwd");
document.getElementById("chkRem").checked = "checked";
}
}
//將賬號與密碼保存到Localstore
function remPwd() {
var check = document.getElementById("chkRem");
if(check.checked) //判斷記住密碼項是否勾選,是則記住密碼到本地緩存
{
var id = document.getElementById("txtId").value;
var pwd = document.getElementById("txtPwd").value;
localStorage.setItem("txtId", id);
localStorage.setItem("txtPwd", pwd);
} else //否則就移除本地緩存
{
localStorage.removeItem("txtId");
localStorage.removeItem("txtPwd");
}
}
</script>
</head>
<body class="bg-black">
<div class="form-box" id="login-box" >
<div class="header">登錄頁面</div>
<form id="formLogin" action="user_loginApp.action" class="login" method="post">
<div class="body bg-gray">
<div class="form-group">
<input type="text" name="loginName" id="txtId" class="form-control" placeholder="請輸入用戶名" onblur="javascript:ok_or_errorBylogin(this)"/>
</div>
<div class="form-group">
<input type="password" name="password" id="txtPwd"class="form-control" placeholder="請輸入密碼" onBlur="javascript:ok_or_errorBylogin(this)" />
</div>
<div class="form-group">
<input type="checkbox" checked="checked" id="chkRem" name="remember_me"/> 記住密碼
</div>
</div>
<div class="footer">
<button type="submit" class="btn bg-olive btn-block" id="login"
<hr>
<p>
<b>
XXXXXXX電子有限責任公司 </b> <br><b>XXXXXXXX有限責任公司<b> 聯合開發<br /><b > 電話:0771-3304546</b><br>
</p>
</div></form>
</body>
</html>
免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。