system.js

来自「新技术论坛系统 v1.0 前后台管理的初始用户名 : admin 密码 123」· JavaScript 代码 · 共 47 行

JS
47
字号
/**
 * System class 
 */
var System = {
	getSelectedValue : function(optionsArray){
		for(var i=0;i<optionsArray.length;i++){
			if(optionsArray[i].selected){
				return optionsArray[i].value;
			}
		}
		return "";
		optionsArray = null;
	}
}

window.onload = function(){
	// stat
	//var currentLocation = window.location.href;
	//document.getElementById("Stat").src="createStat.action?referer="+window.location.href+"("+document.title+")";
	//alert(document.getElementById("Stat").src);
}

/**
 * 文本编辑器加载类
 */
var replaceMyTextarea = function(textareaId,toolbarName,path,width,height) {
	var oFCKeditor = new FCKeditor(textareaId) ;
	if(toolbarName==null){
		oFCKeditor.ToolbarSet = "Basic";
	}
	else{
		oFCKeditor.ToolbarSet = toolbarName;
	}
	if(path==null){
		oFCKeditor.BasePath = '../scripts/FCKeditor/';
	}
	else{
		oFCKeditor.BasePath = path + '/scripts/FCKeditor/';
	}
	if(height == null){
		oFCKeditor.Height = 200;
	}
	else{
		oFCKeditor.Height = height;
	}
	oFCKeditor.ReplaceTextarea() ;
}

⌨️ 快捷键说明

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