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

📄 style.js

📁 基于asp的 班级同学录主页源代码
💻 JS
📖 第 1 页 / 共 3 页
字号:
'		mouse.screenx=window.event.screenX;                                                                                                                                     '+ '\n'+'		mouse.screeny=window.event.screenY;                                                                                                                                     '+ '\n'+'	} else {                                                                                                                                                                        '+ '\n'+'		mouse.screenx=-1;                                                                                                                                                       '+ '\n'+'		mouse.screeny=-1;                                                                                                                                                       '+ '\n'+'	}                                                                                                                                                                               '+ '\n'+'                                                                                                                                                                                       '+ '\n'+'}                                                                                                                                                                                      '+ '\n'+'                                                                                                                                                                                       '+ '\n'+'                                                                                                                                                                                       '+ '\n'+'function initMouseEvents() {                                                                                                                                                           '+ '\n'+'	document.onmousedown = actualizateMouseSTATUS                                                                                                                                   '+ '\n'+'	document.onmousemove = actualizateMouseSTATUS                                                                                                                                   '+ '\n'+'	document.onmouseup   = actualizateMouseSTATUS                                                                                                                                   '+ '\n'+'	document.onselectstart = selectstart                                                                                                                                            '+ '\n'+'	document.ondragstart   = new Function("actualizateMouseSTATUS(event); return false;")                                                                                           '+ '\n'+'}                                                                                                                                                                                      '+ '\n'+'                                                                                                                                                                                       '+ '\n'+'function selectstart(){                                                                                                                                                                '+ '\n'+'	if ( event.srcElement.tagName != "INPUT" && event.srcElement.tagName != "TEXTAREA") { return false; }                                                                           '+ '\n'+'	else { mouse.bt="up"; return true; }                                                                                                                                            '+ '\n'+'}                                                                                                                                                                                      '+ '\n'+'																							'+ '\n'+'initMouseEvents()                                                                                                                                                                      '+ '\n'+'																							'+ '\n'+'var mywindowbt    ="up";                                                                                                                                                               '+ '\n'+'var wincloseSTATUS="up";                                                                                                                                                               '+ '\n'+'																							'+ '\n'+'var ofx=0;                                                                                                                                                                             '+ '\n'+'var ofy=0;                                                                                                                                                                             '+ '\n'+'var opx=0;                                                                                                                                                                             '+ '\n'+'var opy=0;                                                                                                                                                                             '+ '\n'+'var px=0;                                                                                                                                                                              '+ '\n'+'var py=0;                                                                                                                                                                              '+ '\n'+'																							'+ '\n'+'var wcpx1=-1, wcpy1=-1;                                                                                                                                                                '+ '\n'+'var wcpx2=-1, wcpy2=-1;                                                                                                                                                                '+ '\n'+'																							'+ '\n'+'var wclosechanged = false;                                                                                                                                                             '+ '\n'+'																							'+ '\n'+'function initToMoveWin() {                                                                                                                                                             '+ '\n'+'		if (wincloseSTATUS=="up" && ( mywindowbt=="up" || mywindowbt=="over") ) {                                                                                               '+ '\n'+'					                                                 												'+ '\n'+'				if ( parent.mainloaded ) document.all["mywindowCLOCK"].style.visibility = "hidden";                                                 			'+ '\n'+'					                                                 												'+ '\n'+'				document.all["mywindowCLOCK"].style.pixelLeft=document.body.clientWidth-36 										'+ '\n'+'				document.all["mywindowCLOCK"].style.pixelTop =4                                                                         				'+ '\n'+'					                                                 												'+ '\n'+'				wcpx1 = document.all["mywindowCLOSE"].style.pixelLeft=document.body.clientWidth-18                                                                      '+ '\n'+'				wcpy1 = document.all["mywindowCLOSE"].style.pixelTop =4                                                                                                 '+ '\n'+'				wcpx2 = wcpx1 + 11 - 1                                                                                                                                  '+ '\n'+'				wcpy2 = wcpy1 + 11 - 1                                                                                                                                  '+ '\n'+'				if ( mouse.x >= wcpx1 && mouse.x <= wcpx2 && mouse.y >= wcpy1 && mouse.y <= wcpy2) {                                                                    '+ '\n'+'					if (wclosechanged == false) {                                                                                                                   '+ '\n'+'						document.all["mywindowCLOSE"].document.images["closewin"].src=windowCERRARImg_o.src                                                     '+ '\n'+'						wclosechanged = true                                                                                                                    '+ '\n'+'					}                                                                                                                                               '+ '\n'+'						                                                                                                                                        '+ '\n'+'				} else if (wclosechanged == true) {                                                                                                                     '+ '\n'+'					document.all["mywindowCLOSE"].document.images["closewin"].src=windowCERRARImg_d.src                                                             '+ '\n'+'					wclosechanged = false                                                                                                                           '+ '\n'+'				}                                                                                                                                                       '+ '\n'+'		}                                                                                                                                                                       '+ '\n'+'																							'+ '\n'+'		     if (   mouse.y <= 22 && mouse.y >= 1   && mywindowbt == "up"   && mouse.bt =="up"    ) { mywindowbt = "over" }                                                     '+ '\n'+'		else if ( ( mouse.y  > 22 || mouse.y <  1 ) && mywindowbt == "over" && mouse.bt =="up"    ) { mywindowbt = "up"   }                                                     '+ '\n'+'		else if (   mouse.y <= 22 && mouse.y >= 1   && mywindowbt == "over" && mouse.bt == "down" ) {                                                                           '+ '\n'+'			self.window.focus();                                                                                                                                            '+ '\n'+'	                                                                                                                                                                                '+ '\n'+'			if ( mouse.x >= wcpx1 && mouse.x <= wcpx2 && mouse.y >= wcpy1 && mouse.y <= wcpy2 ) {                                                                           '+ '\n'+'				wincloseSTATUS="down"                                                                                                                                   '+ '\n'+'				document.all["mywindowCLOSE"].document.images["closewin"].src=windowCERRARImg_a.src                                                                     '+ '\n'+'			} else {                                                                                                                                                        '+ '\n'+'				document.all["mywindowTITLE"].style.backgroundColor = windowTITBGCOLORsel                                                                               '+ '\n'+'				document.body.style.borderColor    = windowBORDERCOLORsel                                                                                               '+ '\n'+'				parent.chromewinb.document.bgColor = windowBORDERCOLORsel                                                                                               '+ '\n'+'				parent.chromewinl.document.bgColor = windowBORDERCOLORsel                                                                                               '+ '\n'+'				parent.chromewinr.document.bgColor = windowBORDERCOLORsel                                                                                               '+ '\n'+'				ofx =  mouse.x;                                                                                                                                         '+ '\n'+'				ofy =  mouse.y;                                                                                                                                         '+ '\n'+'				opx =  mouse.x;                                                                                                                                         '+ '\n'+'				opy =  mouse.y;                                                                                                                                         '+ '\n'+'			}	                                                                                                                                                        '+ '\n'+'			mywindowbt="down";                                                                                                                                              '+ '\n'+'		}                                                                                                                                                                       '+ '\n'+'		else if ( mouse.bt =="up" && mywindowbt == "down" ) {                                                                                                                   '+ '\n'+'			mywindowbt="up";                                                                                                                                                '+ '\n'+'			ofx=0;                                                                                                                                                          '+ '\n'+'			ofy=0;                                                                                                                                                          '+ '\n'+'			opx=0;                                                                                                                                                          '+ '\n'+'			opy=0;                                                                                                                                                          '+ '\n'+'																							'+ '\n'+'			if ( mouse.x >= wcpx1 && mouse.x <= wcpx2 && mouse.y >= wcpy1 && mouse.y <= wcpy2 && wincloseSTATUS=="down" ) { top.window.close() }                            '+ '\n'+'																							'+ '\n'+'			wincloseSTATUS="up"                                                                                                                                             '+ '\n'+'		                                                                                                                                                                        '+ '\n'+

⌨️ 快捷键说明

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