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

📄 java.js

📁 在实际教学应用中
💻 JS
字号:
// Java Document
	var popUpWin=0;
	function popUpWindow(URLStr, left, top, width, height){
		if(popUpWin)
		if(!popUpWin.closed) popUpWin.close();
		popUpWin = open(URLStr, 'popUpWin', 'toolbar=no,location=no,directories=no,status=no,menub ar=no,scrollbar=no,resizable=no,copyhistory=no,width='+width+',height='+height+',left='+left+', top='+top+',screenX='+left+',screenY='+top+'');
	}

	function openwindow(theURL,winName,features){ 	
    	window.open(theURL,winName,features);
	}

	function MM_jumpMenu(targ,selObj,restore){ //v3.0
	  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
	  if (restore) selObj.selectedIndex=0;
	}

	function messageWindow(title, msg){
	  var width="300", height="125";
	  var left = (screen.width/2) - width/2;
	  var top = (screen.height/2) - height/2;
	  var styleStr = 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbar=no,resizable=no,copyhistory=yes,width='+width+',height='+height+',left='+left+',top='+top+',screenX='+left+',screenY='+top;
	  var msgWindow = window.open("","msgWindow", styleStr);
	  var head = '<head><title>'+title+'</title></head>';
	  var body = '<center>'+msg+'<br><p><form><input type="button" value="我知道了" onClick="self.close()"></form>';
	  msgWindow.document.write(head + body);
	}

// Example:
// value1 = 3; value2 = 4;
// messageBox("text message %s and %s", value1, value2);
// this message box will display the text "text message 3 and 4"
//	function messageBox(){
//	  var i, msg = "", argNum = 0, startPos;
//	  var args = messageBox.arguments;
//	  var numArgs = args.length;
//	  if(numArgs)
//	  {
//		theStr = args[argNum++];
//		startPos = 0;  endPos = theStr.indexOf("%s",startPos);
//		if(endPos == -1) endPos = theStr.length;
//		while(startPos < theStr.length)
//		{
//		  msg += theStr.substring(startPos,endPos);
//		  if (argNum < numArgs) msg += args[argNum++];
//		  startPos = endPos+2;  endPos = theStr.indexOf("%s",startPos);
//		  if (endPos == -1) endPos = theStr.length;
//		}
//		if (!msg) msg = args[0];
//	  }
//	  alert(msg);
//	}

⌨️ 快捷键说明

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