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

📄 init.js

📁 采用JSP + Ajax + 文本来演示多选、全选
💻 JS
字号:
//初始化drag层的位置
function initDrag(){
	var theLeft = getCookie("siteMainDargLeft")!=null ? getCookie("siteMainDargLeft") : 10;
	var theTop = getCookie("siteMainDargTop")!=null ? getCookie("siteMainDargTop") : 10;
	var closeOrOpen = "CLOSE";
	var listDivDisplay =  getCookie("sitelistDivDisplay")!=null ? getCookie("sitelistDivDisplay") : "";

	$("siteMainDarg").style.top = theTop;
	$("siteMainDarg").style.left = theLeft;
	$("sitelistDiv").style.display = listDivDisplay;
	$("max_min").childNodes[1].nodeValue = $("sitelistDiv").style.display=="none" ? "OPEN": "CLOSE";
	$("max_min").childNodes[0].innerHTML = $("sitelistDiv").style.display=="none" ? "1" : "2";
}

function initCheckbox(){
//如果采用对象的方式调入全选效果
	var newCheckBox = selectCheckBox;
	var theForm = document.forms["sitelist"];
	newCheckBox.obj = theForm;	
    newCheckBox.chkname = "check";
	newCheckBox.list  = $("list");
	//newCheckBox.setclick();
	theForm.recheck.onclick = function(){newCheckBox.reverseCheck()};
	theForm.check.onclick = function(){newCheckBox.checkall()};
}

⌨️ 快捷键说明

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