📄 verify.js
字号:
<script language='javascript'>
<!--
function UserEnter()
{
if(window.document.fm.operator_name.value.length<1){
alert("请您填写用户名!");
document.fm.operator_name.focus();
return;}
if(window.document.fm.operator_pwd.value.length<1){
alert("请您填写密码!");
document.fm.operator_pwd.focus();
return;}
if (document.fm.operator_name.value.indexOf("<")!=-1 || document.fm.operator_name.value.indexOf(">")!=-1){
alert("用户名中不能包含 (<,>) ");
document.fm.operator_name.focus();
return ;
}
if (document.fm.operator_name.value.indexOf("'")!=-1){
alert("用户名中不能包含 (') ");
document.fm.operator_name.focus();
return ;
}
window.document.fm.submit();
return true;
}
function window_onload()
{
window.document.fm.screenwidth.value=window.screen.width;
window.document.fm.operator_name.focus();
}
function name_next(code)
{
var charcode=(navigator.appName=="Netscape")?code.which:code.keyCode;
if(charcode==13)
{
window.document.fm.operator_pwd.focus();
}
}
function pwd_next(code)
{
var charcode=(navigator.appName=="Netscape")?code.which:code.keyCode;
if(charcode==13)
{
UserEnter();
}
}
-->
</script>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -