⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 verify.js

📁 客户管理系统的代码示例。“数据库”目录下为客户管理系统的数据库 备份文件;“源代码”目录下为系统各功能页面脚本代码。
💻 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 + -