function.js

来自「一款网上书店的J2EE代码」· JavaScript 代码 · 共 51 行

JS
51
字号
<!-- Beginning of JavaScript Code -------------------
function submitDel()
{
	document.form1.submit();
	
}
function submitsubmit()
{
	document.form2.submit();
	
}


	function opencat(cat,img)
	{
 	 	if(cat.style.display=="none"){
     	cat.style.display="";
    	 img.src="../img/class2.gif";
  		} else {
     	cat.style.display="none"; 
     	img.src="../img/class1.gif";
  		}
	}

function checkspace(checkstr) {
  var str = '';
  for(i = 0; i < checkstr.length; i++) {
    str = str + ' ';
  }
  return (str == checkstr);
}

  function checkuu()
{
    if(checkspace(document.userlogin.username.value)) {
	document.userlogin.username.focus();
    alert("用户名不能为空!");
	return false;
  }
    if(checkspace(document.userlogin.userpassword.value)) {
	document.userlogin.userpassword.focus();
    alert("密码不能为空!");
	return false;
  }
	
  }
var online= new Array();
if (!document.layers)
document.write('<div id="divStayTopLeft" style="position:absolute">')

// -- End of JavaScript Code -->

⌨️ 快捷键说明

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