Help.Web/editor/color_picker.htm
(开头部分) 23KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link href="style/editor.css" rel="stylesheet" type="text/css">
<script>
var sLangDir=dialogArguments[0].sLangDir;
document.write("<scr"+"ipt src='language/"+sLangDir+"/color.js'></scr"+"ipt>");
</script>
<script>writeTitle()</script>
<script>
//******* COLOR ARRAY *********
var dialogArg=dialogArguments[0];
var sName=dialogArguments[1];//color object name
var arrColCustoms = eval("dialogArg."+sName).customColors;
//******* ONLOAD *********
function bodyOnLoad()
{
sHex=eval("dialogArg."+sName).color;
//alert(sHex)//#cccccc
idCurrent.style.backgroundColor=sHex;
//alert(idCurrent.style.backgroundColor)//#cccccc
nRed=convertHexToDec(idCurrent.style.backgroundColor.substr(1,2))+"";
nGreen=convertHexToDec(idCurrent.style.backgroundColor.substr(3,2))+"";
nBlue=convertHexToDec(idCurrent.style.backgroundColor.substr(5,2))+"";
if(idCurrent.style.backgroundColor=="")
{
nRed="";nGreen="";nBlue="";
}
idCurrent.title = "Red: "+nRed+"\nGreen: "+nGreen+"\nBlue: "+nBlue+"\nHex: "+idCurrent.style.backgroundColor;
}
//******* APPLY COLOR *********
function doApply()
{
if(chkUseColorName.checked && idColorName.innerText!="")
eval("dialogArg."+sName).color=idColorName.innerText;
else
eval("dialogArg."+sName).color=inpHex.value;
eval("dialogArg."+sName).onPickColor();
}
function doRemove()
{
eval("dialogArg."+sName).color="";
eval("dialogArg."+sName).onPickColor()
}
//******* REFRESH CUSTOM COLOR *********
function applyCustomColor()
{
for(var i=0;i<22;i++)
{
var cellCustom=eval("cellCustom"+i)
if(cellCustom.style.backgroundColor!="transparent")
arrColCustoms[i]=cellCustom.style.backgroundColor;
}
//eval("dialogArg."+sName).customColors=arrColCustoms;//[CUSTOM]
后面还有 424 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
