網頁登入介面

來源:互聯網
上載者:User

標籤:logs   abs   ack   介面   pass   span   doc   script   title   

<!DOCTYPE html><html><head><meta charset="UTF-8"><title>使用者登入</title><style type="text/css">#div0{width: 600px;height: 250px; position: absolute;}#div1{width: 320px;height: 250px;position: absolute;left: 600px;}/*判斷是否輸入*/#div2{width: 300px;height: 30px;position: absolute;left: 920px;top:70px;}</style><script type="text/javascript">    /*判斷使用者名稱*/function judge(){var div2 = document.getElementById("div2");div2.style.fontSize="15px";var userName = document.getElementById("userName").value;var rule = /^[a-zA-Z]{3}/;  /*前三個字元為字母*/if(rule.test(userName)){div2.style.color="green";div2.innerHTML="格式正確";}else{div2.style.color="red";div2.innerHTML="前三個字元必須為字母";}}function subm(name){var rule = /^[a-zA-Z]{3}/;if(rule.test(name.value)){return true;}else{return false;}}</script></head><body><div id="all"><div id="div0"></div><div id="div1"><form action="http://www.baidu.com" method="get" onsubmit="return subm(this.userName)"><table align="center" width="300px"><tr align="center"><td colspan="2"><span style="font-size: 20px;">論壇使用者帳號登入</span><hr /></td></tr><tr><td colspan="2"></td></tr><tr><td><span style="font-size: 18px;">使用者名稱:</span></td><td><input type="text" name="userName"  id="userName" onblur="judge()" style="height: 30px;width: 220px;font-size: 20px;"/></td></tr><tr><td colspan="2"></td></tr><tr><td><span style="font-size: 18px;">密 碼:</span></td><td><input type="password" name="password" style="height: 30px;width: 220px;font-size: 20px;"/></td></tr><tr><td colspan="2"></td></tr><tr align="right"><td colspan="2"><a href="toRegister.do?opt=toRegister" id="a_1">立即註冊</a></td></tr><tr><td colspan="2"><input type="submit" value="登 錄" style="background-color: #2894FF;color: white;width: 300px;height: 50px;font-size: 20px;"/></td></tr></table></form></div><div id="div2"></div></div></body></html>

  

網頁登入介面

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.