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

📄 openwin_2.1.js

📁 学生评教系统,可以实现学生评教,教师查分功能.
💻 JS
📖 第 1 页 / 共 3 页
字号:
'		else if ( mywindowbt == "down" && wincloseSTATUS == "up") {                                                                                                             '+ '\n'+
'			var m_scrx = mouse.screenx;                                                                                                                                     '+ '\n'+
'			var m_scry = mouse.screeny;                                                                                                                                     '+ '\n'+
'			opx = px + ofx - m_scrx;                                                                                                                                        '+ '\n'+
'			opy = py + ofy - m_scry;                                                                                                                                        '+ '\n'+
'			px = m_scrx - ofx;                                                                                                                                              '+ '\n'+
'			py = m_scry - ofy;                                                                                                                                              '+ '\n'+
'			top.window.moveTo(px , py);                                                                                                                                     '+ '\n'+
'		}                                                                                                                                                                       '+ '\n'+
'	setTimeout("initToMoveWin()",20);                                                                                                                                               '+ '\n'+
'}                                                                                                                                                                                      '+ '\n'+
'</script>                                                                                												'+ '\n'+
'</head>                                                                                                                                                                        	'+ '\n'+
'<body TOPMARGIN=0 LEFTMARGIN=0 MARGINWIDTH=0 MARGINHEIGHT=0 scroll=no style="border: 0px solid '+ winBORDERCOLOR +'; overflow: hidden; margin: 0pt;" bgcolor='+winBGCOLOR+'>  		'+ '\n'+
'<div id=mywindow><img src="'+NONEgrf+'" width=100% height=22></div>                                                                                                             	'+ '\n'+
'<div id=mywinTITLE>'+ '<table width=100% height=22 border=0 cellpadding=0 cellspacing=0><tr><td valign=middle align=left>'+winTIT+'</td></tr></table>' +'</div>                  	'+ '\n'+
'<div id=mywindowCLOSE><a href=javascript:window.close()><img name=closewin src="'+ CLOSEup +'" border=0 width=11 height=11></a></div>                                                                                  	'+ '\n'+
'<div id=myCLOCKgrf><a href=javascript:window.close()><img name=clockwin src="'+ CLOCKgrf   +'" border=0 width=11 height=11></a></div>                                                                                  	'+ '\n'+
'</body>                                                                                                                                                                        	'+ '\n'+
'<script>initToMoveWin();</script>																			'+ '\n'+
'</html>                                                                                                                                                                        	'+ '\n'

var chromeFRMhtml = '' +
'<HTML>																									'+ '\n'+
'<HEAD>                                                                         															'+ '\n'+
'<TITLE>'+ winREALtit +'</TITLE>                                          																'+ '\n'+
'</HEAD>                                                                        															'+ '\n'+
'<script> 																								'+ '\n'+
'mainloaded = false																							'+ '\n'+
'function generatetitle() { 																						'+ '\n'+
'	if( window.frames["frmTIT"] && window.frames["bordeL"] && window.frames["bordeB"] && window.frames["bordeR"] && window.frames["noneL"] && window.frames["noneR"] && window.frames["noneB"] ) {	'+ '\n'+
'		frmTIT.document.open();																					'+ '\n'+
'		frmTIT.document.write( "'+ quitasaltolinea(chromeTIThtml) +'" );															'+ '\n'+
'		frmTIT.document.close();																				'+ '\n'+
'		 noneL.document.bgColor="'+ winBGCOLOR +'"																		'+ '\n'+
'		 noneR.document.bgColor="'+ winBGCOLOR +'"																		'+ '\n'+
'		 noneB.document.bgColor="'+ winBGCOLOR +'"																		'+ '\n'+
'		bordeL.document.bgColor="'+ winBORDERCOLOR +'"																		'+ '\n'+
'		bordeR.document.bgColor="'+ winBORDERCOLOR +'"																		'+ '\n'+
'		bordeB.document.bgColor="'+ winBORDERCOLOR +'"																		'+ '\n'+
'		bordeT.document.bgColor="'+ winBORDERCOLOR +'"																		'+ '\n'+
'	} else {																							'+ '\n'+
'		setTimeout("generatetitle()",200)																			'+ '\n'+
'	}																								'+ '\n'+
'}																									'+ '\n'+
'generatetitle()																							'+ '\n'+
'</script>																								'+ '\n'+
'<frameset border=0 framespacing=0 frameborder=0 rows="22,100%,10" onload="mainloaded=true" onreadystatechange="generatetitle()">									'+ '\n'+
'	<frame name=frmTIT src="about:blank" scrolling=no noresize>  																	'+ '\n'+
'	<frameset border=0 framespacing=0 frameborder=0 cols="10,1,100%,1,10">        															'+ '\n'+
'		<frame name=noneL src="about:blank" scrolling=no noresize> 																'+ '\n'+
'		<frame name=bordeL src="about:blank" scrolling=no noresize> 																'+ '\n'+
'			<frameset border=0 framespacing=0 frameborder=0 rows="1,100%,1">        													'+ '\n'+
'				<frame name=bordeT src="about:blank" scrolling=no noresize> 														'+ '\n'+
'				<frame name=main   src="'+theURL+'">                   															'+ '\n'+
'				<frame name=bordeB src="about:blank" scrolling=no noresize> 														'+ '\n'+
'			</frameset>                                                             													'+ '\n'+
'		<frame name=bordeR src="about:blank" scrolling=no noresize> 																'+ '\n'+
'		<frame name=noneR src="about:blank" scrolling=no noresize> 																'+ '\n'+
'	</frameset>                                                             															'+ '\n'+
'	<frame name=noneB src="about:blank" scrolling=no noresize>         																'+ '\n'+
'</frameset>                                                                    															'+ '\n'+
'</HTML>                                                                        															'

		splashWin = window.open( "" , wname, "fullscreen=1,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0"+s);

		splashWin.resizeTo( Math.ceil( W )       , Math.ceil( H ) );
		splashWin.moveTo  ( Math.ceil( windowX ) , Math.ceil( windowY ) );

		splashWin.document.open();
		splashWin.document.write( chromeFRMhtml );
		splashWin.document.close();

	}
	else    {
		var splashWin = window.open(theURL, wname, "toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=1"+s, true);
	}

	splashWin.focus();
}                                                                               
                                                                                
function quitasaltolinea(txt) {

  var salida = txt.toString()
  var re     = /\\/g; var salida = salida.replace(re, "\\\\");
  var re     = /\//g; var salida = salida.replace(re, "\\\/");
  var re     = /\"/g; var salida = salida.replace(re, "\\\"");
  var re     = /\'/g; var salida = salida.replace(re, "\\\'");
  var re     = /\n/g; var salida = salida.replace(re, "\\n");
  var re     = /  /g; var salida = salida.replace(re, "");
  var re     = /\t/g; var salida = salida.replace(re, "");
  var re     = /\r/g; var salida = salida.replace(re, "");

  return salida

}

⌨️ 快捷键说明

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