hu_editor/dialog/selcolor.htm
(开头部分) 18KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
<HTML>
<HEAD>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<script type="text/javascript" src="dialog.js"></script>
<script type="text/javascript">
document.write ("<link href='../skin/" + config.Skin + "/dialog.css' type='text/css' rel='stylesheet'>");
var sAction = URLParams['action'] ;
var sTitle = "";
var color = "" ;
var oSelection;
var oControl;
var sRangeType;
switch (sAction) {
case "forecolor":
sTitle = lang["DlgSelCorForecolor"];
oSelection = dialogArguments.eWebEditor.document.selection.createRange();
color = oSelection.queryCommandValue("ForeColor");
if (color) color = N2Color(color);
break;
case "backcolor":
sTitle = lang["DlgSelCorBackcolor"];
oSelection = dialogArguments.eWebEditor.document.selection.createRange();
color = oSelection.queryCommandValue("BackColor");
if (color) color = N2Color(color);
break;
case "bgcolor":
sTitle = lang["DlgSelCorBgcolor"];
oSelection = dialogArguments.eWebEditor.document.selection.createRange();
sRangeType = dialogArguments.eWebEditor.document.selection.type;
if (sRangeType == "Control") {
oControl = GetControl(oSelection, "TABLE");
}else{
oControl = GetParent(oSelection.parentElement());
}
if (oControl) {
switch(oControl.tagName){
case "TD":
sTitle += " - " + lang["DlgComTableCell"];
break;
case "TR":
case "TH":
sTitle += " - " + lang["DlgComTableRow"];
break;
default:
sTitle += " - " + lang["DlgComTable"];
break;
}
color = oControl.style.backgroundColor;
}else{
sTitle += " - " + lang["DlgComBody"];
}
break;
default:
if (URLParams['color']){
color = decodeURIComponent(URLParams['color']) ;
}
break;
后面还有 374 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
