📄 private.js
字号:
/*
*☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆
*★ ★
*☆ eWebEditor在线编辑器 ☆
*★ ★
*☆ 版权所有: eWebSoft.com ☆
*★ ★
*☆ 程序制作: eWeb开发团队 ☆
*★ email:webmaster@webasp.net ★
*☆ QQ:589808 ☆
*★ ★
*☆ 相关网址: [产品介绍]http://www.eWebSoft.com/Product/eWebEditor/ ☆
*★ [支持论坛]http://bbs.eWebSoft.com/ ★
*☆ ☆
*★ 主页地址: http://www.eWebSoft.com/ eWebSoft团队及产品 ★
*☆ http://www.webasp.net/ WEB技术及应用资源网站 ☆
*★ http://bbs.webasp.net/ WEB技术交流论坛 ★
*★ ★
*☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆
*/
function BaseTrim(str){
lIdx=0;rIdx=str.length;
if (BaseTrim.arguments.length==2)
act=BaseTrim.arguments[1].toLowerCase()
else
act="all"
for(var i=0;i<str.length;i++){
thelStr=str.substring(lIdx,lIdx+1)
therStr=str.substring(rIdx,rIdx-1)
if ((act=="all" || act=="left") && thelStr==" "){
lIdx++
}
if ((act=="all" || act=="right") && therStr==" "){
rIdx--
}
}
str=str.slice(lIdx,rIdx)
return str
}
function BaseAlert(theText,notice){
alert(notice);
theText.focus();
theText.select();
return false;
}
function HighLightOver(){
HighLightList("#E0E6F7");
}
function HighLightOut(){
HighLightList("");
}
function HighLightList(color){
var el=event.srcElement;
var b=false;
var tabElement=null;
while (!b){
el=GetParentElement(el, "TR")
if (el){
tabElement=GetParentElement(el, "TABLE");
if (tabElement!=null && tabElement.className.toUpperCase()=="LIST"){
break;
}
el=tabElement;
}else{
return;
}
}
for (var i=0;i<el.children.length;i++){
if (el.children[i].tagName=="TD"){
el.children[i].style.backgroundColor=color;
}
}
}
function GetParentElement(obj, tag){
while(obj!=null && obj.tagName!=tag)
obj=obj.parentElement;
return obj;
}
document.onmouseover=HighLightOver
document.onmouseout=HighLightOut
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -