verify_client.js

来自「Activity——活动管理模块 Analyse——分析模块 Client—」· JavaScript 代码 · 共 48 行

JS
48
字号
<!--

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();
    }
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?