main.js

来自「自己写的一个struts+spring+hibernate测试程序」· JavaScript 代码 · 共 25 行

JS
25
字号
$(document).ready(function(){
	$("input[@type=text],input[@type=file],input[@type=password],textarea").focus(function(){
		$(this).css("border-color","#FF9900").css("background-color", "#FFFFCC");
	}).blur(function(){
		$(this).css("border-color","#1D9BC0").css("background-color", "#FFF");;
	}).addClass("input_txt");
});
CheckAll = function(control, checkboxs){
		control.click(function(){
			if(this.checked){
				checkboxs.each(function(i){
					this.checked = true;		
				});
			}else{
				checkboxs.each(function(i){
					this.checked = false;		
				});
			}
		});
}

OpenWin = function(url, width, height){
	window.open(url,"mywin","width=" + width + "px,height=" + height +"px, scrollbars=yes, top=" + (screen.Height/2 -height/2) + "px,left=" + (screen.Width/2 -width/2)+"px");
}

⌨️ 快捷键说明

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