📄 system.js
字号:
/**
* 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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -