shawl.qiu Javascript 前景色背景色调色类 / BgColorScheme v1.1
说明:
v1.0 见这里:
/btbtd/archive//07/01/1672991.aspx
v1.1
增加了补色和渐变
改进了执行效率, 比 1.0 提高了至少十倍
修正了1.0中某些小Bug
目录:
1. 调用
2. BgColorScheme_v1-1.js
3. HashTable.js
-07-02
shawl.qiu
/btbtd
演示:
/btbtd/javascript/class/BgColorScheme/BgColorScheme_v1-1.htm
下载:
/btbtd/javascript/class/BgColorScheme/BgColorScheme_v1-1.7z
内容:
1. 调用
<!DOCTYPEhtmlPUBLIC"-//W3C//DTDXHTML1.0Transitional//EN""/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <htmlxmlns="/1999/xhtml"> <!--DW6--> <head> <metahttp-equiv="Content-Type"content="text/html;charset=utf-8"/> <title>UntitledDocument</title> </head> <body> <divid="BgColorSchemeId"></div> <scripttype="text/javascript"src="HashTable.js"></script> <scripttype="text/javascript"src="BgColorScheme_v1-1.js"></script> <scripttype="text/javascript"> //<![CDATA[ varBcs=newBgColorScheme(); Bcs.Init.Name="Bcs"; Bcs.Main.Id="BgColorSchemeId"; Bcs.Invert=false; //Bcs.Msg="shawl.qiu"; Bcs.Color.Set=["#7CA8F3","#13D229"]; Bcs.Faded.TargetTbx.Default="#ffffff"; Bcs.Faded.TimeTbx.Default=50; Bcs.Faded.ChangeSle.Default="#ffffff"; Bcs.Status=true; Bcs.Style.Append=true; Bcs.Go(); document.title=Bcs.Au.Subject+""+Bcs.Au.Version; Bcs=null; //]]> </script> </body> </html>
2. BgColorScheme_v1-1.js
//shawl.qiuJavaScriptDocument /*-----------------------------------------------------------------------------------*/ *shawl.qiuJavascriptBgColorSchemeclassv1.1 /*-----------------------------------------------------------------------------------*/ //---------------------------------beginclassBgColorScheme()-------------------------------// functionBgColorScheme() {//shawl.qiucode //------------------------------------beginpublicvariable //---------------beginabout this.Au={} this.Au.Subject="shawl.qiuJavascriptBgColorSchemeclass"; this.Au.Version="v1.1"; this.Au.Name="shawl.qiu"; this.Au.Email="shawl.qiu@"; this.Au.Blog="/btbtd"; this.Au.CreatedDate="-6-28"; this.Au.Update={}; this.Au.Update["1"]="-7-1"; //---------------endabout this.Init={}; this.Init.Name="Bcs"; this.Main={}; this.Main.Id="BgColorSchemeId"; this.Postfix=""; this.ContainerHb=null; this.Invert=false; this.Msg=""; this.Color={}; this.Color.Set=["#7CA8F3","#13D229"]; this.Color.Hot="Red,Orange,Yellow"; this.Color.Cool="Green,Cyan,BlueCyan,Blue,Indigo"; this.Color.Neutral="Violet,Pink,Brown"; this.Color.None="Grey"; this.Color.White="White"; this.Color.Web="Web"; this.Color.Jp="JpRedViolet,JpRed,JpYellowRed,JpYellow,JpYellowGreen" +",JpGreen,JpBlueViolet,JpViolet,JpAchromatic"; pColor="CompColor"; this.Color.Faded="Faded"; this.Element={}; this.Element.Nav={} this.Element.Nav.Main=null; this.Element.Nav.Id="NavId"; this.Element.CbxList={}; this.Element.CbxList.Name=""; this.Element.CbxList.ClassName="BcsCbxListClassName"; this.Element.Text={}; this.Element.Text.Main=null; this.Element.Text.Id="TextId"; this.Element.Text.ClassName="BcsTextClassName"; this.Element.ColorTbx={}; this.Element.ColorTbx.Main=null; this.Element.ColorTbx.Id="BcsColorEleId"; this.Element.ColorTbx.ClassName="BcsColorTbxClassName"; this.Element.InvertCbx={}; this.Element.InvertCbx.Main=null; this.Element.InvertCbx.Id="BcsInvertCbxId"; this.Element.GoBtn={}; this.Element.GoBtn.Main=null; this.Element.GoBtn.Id="BcsGoBtnId"; this.Element.Anchor={}; this.Element.Anchor.Main=null; this.Element.Anchor.Id="BcsAnchorId"; this.Theme={}; this.Theme.Default="Together"; this.Theme.HashTable=null; this.Theme.Select={}; this.Theme.Select.Id="BcsSelectDisplayId"; this.Theme.Select.Main=null; this.Status=false; this.Style={}; this.Style.Append=false; this.Style.Id="BcsStyleId"; this.Faded={} this.Faded.FadeTo={}; this.Faded.FadeTo.Id="BcsFadeToId"; this.Faded.FadeTo.Main=null; this.Faded.TargetTbx={}; this.Faded.TargetTbx.Id="BcsFadedId"; this.Faded.TargetTbx.Default="#ffffff"; this.Faded.TargetTbx.Main=null; this.Faded.TimeTbx={}; this.Faded.TimeTbx.Id="BcsTime"; this.Faded.TimeTbx.Default=50; this.Faded.TimeTbx.Main=null; this.Faded.ChangeSle={}; this.Faded.ChangeSle.Id="BscChangeFadedSleId"; this.Faded.ChangeSle.Default="#ffffff"; this.Faded.ChangeSle.HashTable=null; this.Faded.ChangeSle.Main=null; //------------------------------------endpublicvariable //------------------------------------beginprivatevariable varTl=this; varpMain=null; varpNav=null; varpText=null; varpCbxList=null; varpInvertCbx=null; varpGoBtn=null; varpAnchorStr=""; varpSelect=null; varpTargetTbx=null; varpTimeTbx=null; varpChangeSle=null; varpFadeTo=null; //------------------------------------endprivatevariable //------------------------------------beginpublicmethod this.Go=fGo; //------------------------------------endpublicmethod
//------------------------------------beginprivatemethod functionfGo() { if(typeof(Tl.Main.Id)=="string") { pMain=document.getElementById(Tl.Main.Id); } elseif(typeof(Tl.Main.Id)=="object") { pMain=Tl.Main.Id; } if(typeof(pMain)!="object"||pMain==null) { alert("主域不能为Null!"); return; } Tl.Postfix=fRandomLetter(10); Tl.Element.CbxList.Name=Tl.Init.Name+Tl.Postfix; Tl.Element.Nav.Id=Tl.Init.Name+Tl.Element.Nav.Id+Tl.Postfix; Tl.Style.Id=Tl.Init.Name+Tl.Style.Id+Tl.Postfix; if(Tl.Style.Append) { varsStyle=fAppendStyle(); fAddStyleFromStr(sStyle,Tl.Style.Id); } Tl.ContainerHb=newHashTable();
Tl.ContainerHb.Add("Red","红系",{Exec:fRed,Content:null}); Tl.ContainerHb.Add("Orange","橙系",{Exec:fOrange,Content:null}); Tl.ContainerHb.Add("Yellow","黄系",{Exec:fYellow,Content:null}); Tl.ContainerHb.Add("Green","绿系",{Exec:fGreen,Content:null}); Tl.ContainerHb.Add("Cyan","青系",{Exec:fCyan,Content:null}); Tl.ContainerHb.Add("BlueCyan","青蓝系",{Exec:fBlueCyan,Content:null}); Tl.ContainerHb.Add("Blue","蓝系",{Exec:fBlue,Content:null}); Tl.ContainerHb.Add("Indigo","靛青系",{Exec:fIndigo,Content:null}); Tl.ContainerHb.Add("Violet","紫系",{Exec:fViolet,Content:null}); Tl.ContainerHb.Add("Pink","粉红系",{Exec:fPink,Content:null}); Tl.ContainerHb.Add("Brown","褐系",{Exec:fBrown,Content:null}); Tl.ContainerHb.Add("Grey","灰系",{Exec:fGrey,Content:null}); Tl.ContainerHb.Add("White","白系",{Exec:fWhite,Content:null}); Tl.ContainerHb.Add("Web","Web",{Exec:fWeb,Content:null}); Tl.ContainerHb.Add("CompColor","补色",{Exec:fCompColor,Content:null}); Tl.ContainerHb.Add("Faded","渐变",{Exec:fFaded,Content:null}); Tl.ContainerHb.Add("JpRedViolet","Jp红紫",{Exec:fJpRedViolet,Content:null}); Tl.ContainerHb.Add("JpRed","Jp红",{Exec:fJpRed,Content:null}); Tl.ContainerHb.Add("JpYellowRed","Jp黄红",{Exec:fJpYellowRed,Content:null}); Tl.ContainerHb.Add("JpYellow","Jp黄",{Exec:fJpYellow,Content:null}); Tl.ContainerHb.Add("JpYellowGreen","Jp黄绿",{Exec:fJpYellowGreen,Content:null}); Tl.ContainerHb.Add("JpGreen","Jp绿",{Exec:fJpGreen,Content:null}); Tl.ContainerHb.Add("JpBlueViolet","Jp蓝紫",{Exec:fJpBlueViolet,Content:null}); Tl.ContainerHb.Add("JpViolet","Jp紫",{Exec:fJpViolet,Content:null}); Tl.ContainerHb.Add("JpAchromatic","Jp减",{Exec:fJpAchromatic,Content:null}); Tl.Theme.HashTable=newHashTable(); Tl.Theme.HashTable.Add("Together","合并显示"); Tl.Theme.HashTable.Add("Split","分散显示"); Tl.Element.Nav.Main=document.createElement("div"); Tl.Element.Nav.Main.id=Tl.Element.Nav.Id; varNavAr=[]; varAnchorAr=[]; varsShadesCount=""; if(Tl.Status)sShadesCount="(共"+Tl.ContainerHb.Count()+"系)"; NavAr.push("<aname='"+Tl.Init.Name+"'</a>请选择色彩系"+sShadesCount+":<br/>"); AnchorAr.push("<div>"); AnchorAr.push("<ahref=#"+Tl.Init.Name+">Top</a>"); variCount=0; for(variinTl.ContainerHb.Object) { NavAr.push("<inputtype='checkbox'name='"); NavAr.push(Tl.Element.CbxList.Name); NavAr.push("'value='"+i+"'/>"); NavAr.push("<ahref='#"+i+"'>"); NavAr.push(Tl.ContainerHb.Item(i)); NavAr.push("</a>"); AnchorAr.push("|<ahref='#"+i+"'>"); AnchorAr.push(Tl.ContainerHb.Item(i)); AnchorAr.push("</a>"); switch(iCount) { case2: case7: case10: case11: case12: case13: case14: case15: NavAr.push("<br/>"); break; default: break; } iCount++; } AnchorAr.push("</div>"); Tl.Element.Nav.Main.innerHTML=NavAr.join(""); pAnchorStr=AnchorAr.join(""); pMain.appendChild(Tl.Element.Nav.Main); pNav=document.getElementById(Tl.Element.Nav.Id); Tl.Element.Text.Id=Tl.Init.Name+Tl.Element.Text.Id+Tl.Postfix; Tl.Element.Text.Main=document.createElement("div"); Tl.Element.Text.Main.id=Tl.Element.Text.Id; Tl.Element.Text.Main.className=Tl.Element.Text.ClassName; pMain.appendChild(Tl.Element.Text.Main); pText=document.getElementById(Tl.Element.Text.Id); pCbxList=document.getElementsByName(Tl.Element.CbxList.Name); for(vari=0,j=pCbxList.length;i<j;i++) { varsId=Tl.Init.Name+pCbxList[i].value+Tl.Postfix; varTempSpan=document.createElement("span"); TempSpan.id=sId; pText.appendChild(TempSpan); pCbxList[i].onclick= function() { pGoBtn.click(); }//endoTemp.onclick }//endfor varColorTbx=document.createElement("input"); ColorTbx.type="text"; ColorTbx.size="60"; ColorTbx.value=Tl.Color.Set; ColorTbx.id=Tl.Init.Name+Tl.Element.ColorTbx.Id+Tl.Postfix; Tl.Element.ColorTbx.Id=ColorTbx.id; ColorTbx.className=Tl.Element.ColorTbx.ClassName; pText.parentNode.insertBefore(ColorTbx,pText); Tl.Element.ColorTbx.Main=document.getElementById(Tl.Element.ColorTbx.Id); pColorTbx=Tl.Element.ColorTbx.Main;
varGoBtn=document.createElement("button"); GoBtn.innerHTML="Go"; GoBtn.className=Tl.Element.CbxList.ClassName; GoBtn.id=Tl.Init.Name+Tl.Element.GoBtn.Id+Tl.Postfix; Tl.Element.GoBtn.Id=GoBtn.id; GoBtn.onclick=function() { varStartDt=newDate(); varColorAr=fClearArrayRepeats(pColorTbx.value.split(",")); if(ColorAr.length===0) { alert("颜色序列不能为空!"); returnfalse; } Tl.Color.Set.sort(); ColorAr.sort(); if(Tl.Color.Set.join("")!=ColorAr.join("")) { for(variinTl.ContainerHb.Object) { Tl.ContainerHb.Item(i).Content=null; } } Tl.Color.Set=ColorAr; fSetPAnchorStr(); if ( ( pTargetTbx.value==Tl.Faded.TargetTbx.Default &&pTimeTbx.value==Tl.Faded.TimeTbx.Default )==false ) { Tl.Faded.TargetTbx.Default=pTargetTbx.value; Tl.Faded.TimeTbx.Default=pTimeTbx.value-0; Tl.ContainerHb.Item("Faded").Content=null; }//endif for(vari=0,j=pCbxList.length;i<j;i++) { varsId=Tl.Init.Name+pCbxList[i].value+Tl.Postfix; varoDiv=document.getElementById(sId);
if(pCbxList[i].checked) { if ( Tl.ContainerHb.Item(pCbxList[i].value).Content==null ) { Tl.ContainerHb.Item(pCbxList[i].value).Content =Tl.ContainerHb.Item(pCbxList[i].value).Exec(); } oDiv.innerHTML=Tl.ContainerHb.Item(pCbxList[i].value).Content; } else { oDiv.innerHTML=""; } }//endfor fPutAnchorStr(); varEndDt=newDate(); if(Tl.Status)defaultStatus= Tl.Au.Subject+""+Tl.Au.Version+"耗时:"+(EndDt-StartDt)+"毫秒"; }//endGoBtn.onclick pText.parentNode.insertBefore(GoBtn,pText); Tl.Element.GoBtn.Main=document.getElementById(Tl.Element.GoBtn.Id); pGoBtn=Tl.Element.GoBtn.Main; pColorTbx.parentNode.insertBefore ( document.createTextNode("Web颜色值(例:black,white,#000,#fff):") ,pGoBtn ); pGoBtn.parentNode.insertBefore ( document.createElement("br") ,pGoBtn ); varHotBtn=document.createElement("button"); HotBtn.innerHTML="暖色"; HotBtn.className=Tl.Element.CbxList.ClassName; HotBtn.onclick=function() { for(vari=0,j=pCbxList.length;i<j;i++) { varRe=newRegExp("//b"+pCbxList[i].value+"//b","i"); if(Re.test(Tl.Color.Hot)) { pCbxList[i].checked=true; } else { pCbxList[i].checked=false; } }//endfor pGoBtn.click(); } pText.parentNode.insertBefore(HotBtn,pText);
varCoolBtn=document.createElement("button"); CoolBtn.innerHTML="冷色"; CoolBtn.className=Tl.Element.CbxList.ClassName; CoolBtn.onclick=function() { for(vari=0,j=pCbxList.length;i<j;i++) { varRe=newRegExp("//b"+pCbxList[i].value+"//b","i"); if(Re.test(Tl.Color.Cool)) { pCbxList[i].checked=true; } else { pCbxList[i].checked=false; } }//endfor pGoBtn.click(); } pText.parentNode.insertBefore(CoolBtn,pText); varNeutralBtn=document.createElement("button"); NeutralBtn.innerHTML="中色"; NeutralBtn.className=Tl.Element.CbxList.ClassName; NeutralBtn.onclick=function() { for(vari=0,j=pCbxList.length;i<j;i++) { varRe=newRegExp("//b"+pCbxList[i].value+"//b","i"); if(Re.test(Tl.Color.Neutral)) { pCbxList[i].checked=true; } else { pCbxList[i].checked=false; } }//endfor pGoBtn.click(); } pText.parentNode.insertBefore(NeutralBtn,pText); varNoneBtn=document.createElement("button"); NoneBtn.innerHTML="无色"; NoneBtn.className=Tl.Element.CbxList.ClassName; NoneBtn.onclick=function() { for(vari=0,j=pCbxList.length;i<j;i++) { varRe=newRegExp("//b"+pCbxList[i].value+"//b","i"); if(Re.test(Tl.Color.None)) { pCbxList[i].checked=true; } else { pCbxList[i].checked=false; } }//endfor pGoBtn.click(); } pText.parentNode.insertBefore(NoneBtn,pText); varWhiteBtn=document.createElement("button"); WhiteBtn.innerHTML="白色"; WhiteBtn.className=Tl.Element.CbxList.ClassName; WhiteBtn.onclick=function() { for(vari=0,j=pCbxList.length;i<j;i++) { varRe=newRegExp("//b"+pCbxList[i].value+"//b","i"); if(Re.test(Tl.Color.White)) { pCbxList[i].checked=true; } else { pCbxList[i].checked=false; } }//endfor pGoBtn.click(); } pText.parentNode.insertBefore(WhiteBtn,pText); varWebBtn=document.createElement("button"); WebBtn.innerHTML="Web"; WebBtn.className=Tl.Element.CbxList.ClassName; WebBtn.onclick=function() { for(vari=0,j=pCbxList.length;i<j;i++) { varRe=newRegExp("//b"+pCbxList[i].value+"//b","i"); if(Re.test(Tl.Color.Web)) { pCbxList[i].checked=true; } else { pCbxList[i].checked=false; } }//endfor pGoBtn.click(); } pText.parentNode.insertBefore(WebBtn,pText); varCompColorBtn=document.createElement("button"); CompColorBtn.innerHTML="补色"; CompColorBtn.className=Tl.Element.CbxList.ClassName; CompColorBtn.onclick=function() { for(vari=0,j=pCbxList.length;i<j;i++) { varRe=newRegExp("//b"+pCbxList[i].value+"//b","i"); if(Re.test(pColor)) { pCbxList[i].checked=true; } else { pCbxList[i].checked=false; } }//endfor pGoBtn.click(); } pText.parentNode.insertBefore(CompColorBtn,pText); varJpBtm=document.createElement("button"); JpBtm.innerHTML="Jp"; JpBtm.className=Tl.Element.CbxList.ClassName; JpBtm.onclick=function() { for(vari=0,j=pCbxList.length;i<j;i++) { varRe=newRegExp("//b"+pCbxList[i].value+"//b","i"); if(Re.test(Tl.Color.Jp)) { pCbxList[i].checked=true; } else { pCbxList[i].checked=false; } }//endfor pGoBtn.click(); } pText.parentNode.insertBefore(JpBtm,pText); pText.parentNode.insertBefore(document.createElement("br"),pText); Tl.Faded.FadeTo.Id=Tl.Init.Name+Tl.Faded.FadeTo.Id+Tl.Postfix; varFadedBtn=document.createElement("button"); FadedBtn.innerHTML="渐变至"; FadedBtn.id=Tl.Faded.FadeTo.Id; FadedBtn.className=Tl.Element.CbxList.ClassName; FadedBtn.onclick=function() { for(vari=0,j=pCbxList.length;i<j;i++) { varRe=newRegExp("//b"+pCbxList[i].value+"//b","i"); if(Re.test(Tl.Color.Faded)) { pCbxList[i].checked=true; } else { pCbxList[i].checked=false; } }//endfor pGoBtn.click(); } pText.parentNode.insertBefore(FadedBtn,pText); pFadeTo=document.getElementById(Tl.Faded.FadeTo.Id); Tl.Faded.FadeTo.Main=pFadeTo; Tl.Faded.TargetTbx.Id=Tl.Init.Name+Tl.Faded.TargetTbx.Id+Tl.Postfix; varTargetTbx=document.createElement("input"); TargetTbx.type="text"; TargetTbx.size=6; TargetTbx.id=Tl.Faded.TargetTbx.Id; TargetTbx.value=Tl.Faded.TargetTbx.Default; TargetTbx.className=Tl.Element.CbxList.ClassName;
pText.parentNode.insertBefore(TargetTbx,pText); Tl.Faded.TargetTbx.Main=document.getElementById(Tl.Faded.TargetTbx.Id); pTargetTbx=Tl.Faded.TargetTbx.Main; pText.parentNode.insertBefore(document.createTextNode(":HexColor"),pText); varTempTextNode=document.createTextNode("|FadingTo:"); pText.parentNode.insertBefore(TempTextNode,pText); Tl.Faded.ChangeSle.HashTable=newHashTable(); Tl.Faded.ChangeSle.HashTable.Add("Black","#000000",{Zh:"黑色"}); Tl.Faded.ChangeSle.HashTable.Add("White","#ffffff",{Zh:"白色"}); Tl.Faded.ChangeSle.HashTable.Add("Red","#ff0000",{Zh:"红色"}); Tl.Faded.ChangeSle.HashTable.Add("Orange","#FF7F00",{Zh:"橙色"}); Tl.Faded.ChangeSle.HashTable.Add("Yellow","#ffff00",{Zh:"黄色"}); Tl.Faded.ChangeSle.HashTable.Add("Green","#00FF00",{Zh:"绿色"}); Tl.Faded.ChangeSle.HashTable.Add("Cyan","#00FFFF",{Zh:"青色"}); Tl.Faded.ChangeSle.HashTable.Add("Blue","#0000ff",{Zh:"蓝色"}); Tl.Faded.ChangeSle.HashTable.Add("Purple","#660099",{Zh:"紫色"}); Tl.Faded.ChangeSle.Id=Tl.Init.Name+Tl.Faded.ChangeSle.Id+Tl.Postfix; varChangeSle=document.createElement("select"); ChangeSle.id=Tl.Faded.ChangeSle.Id; ChangeSle.className=Tl.Element.CbxList.ClassName; pText.parentNode.insertBefore(ChangeSle,pText); pChangeSle=document.getElementById(Tl.Faded.ChangeSle.Id); for(variinTl.Faded.ChangeSle.HashTable.Object) { varMyItem=Tl.Faded.ChangeSle.HashTable.Item(i); if(MyItem+""==Tl.Faded.ChangeSle.Default) { fAddOption(pChangeSle,MyItem.Zh,MyItem,true,true); } } for(variinTl.Faded.ChangeSle.HashTable.Object) { varMyItem=Tl.Faded.ChangeSle.HashTable.Item(i); if(MyItem+""!=Tl.Faded.ChangeSle.Default) { fAddOption(pChangeSle,MyItem.Zh,MyItem,false,false); } } pChangeSle.onchange= function() { if(this.value!=pTargetTbx.value) { pTargetTbx.value=this.value; pFadeTo.click(); } } Tl.Faded.TimeTbx.Id=Tl.Init.Name+Tl.Faded.TimeTbx.Id+Tl.Postfix; varTimeTbx=document.createElement("input"); TimeTbx.type="text"; TimeTbx.size=3; TimeTbx.id=Tl.Faded.TimeTbx.Id; TimeTbx.value=Tl.Faded.TimeTbx.Default; TimeTbx.className=Tl.Element.CbxList.ClassName;
pText.parentNode.insertBefore(TimeTbx,pText); Tl.Faded.TimeTbx.Main=document.getElementById(Tl.Faded.TimeTbx.Id); pTimeTbx=Tl.Faded.TimeTbx.Main; pText.parentNode.insertBefore(document.createTextNode(":IntegerTimes"),pText); pText.parentNode.insertBefore(document.createElement("br"),pText);
varSleAllBtn=document.createElement("button"); SleAllBtn.innerHTML="全选"; SleAllBtn.className=Tl.Element.CbxList.ClassName; SleAllBtn.onclick=function() { varbConfirm=confirm("现在全选?"); if(!bConfirm)returnfalse; for(vari=0,j=pCbxList.length;i<j;i++) { pCbxList[i].checked=true; }//endfor pGoBtn.click(); } pText.parentNode.insertBefore(SleAllBtn,pText); varSleInvertBtn=document.createElement("button"); SleInvertBtn.innerHTML="反选"; SleInvertBtn.className=Tl.Element.CbxList.ClassName; SleInvertBtn.onclick=function() { varbConfirm=confirm("现在反选?"); if(!bConfirm)returnfalse; for(vari=0,j=pCbxList.length;i<j;i++) { if(pCbxList[i].checked) { pCbxList[i].checked=false; } else { pCbxList[i].checked=true; } }//endfor pGoBtn.click(); } pText.parentNode.insertBefore(SleInvertBtn,pText); varSleNoneBtn=document.createElement("button"); SleNoneBtn.innerHTML="不选"; SleNoneBtn.className=Tl.Element.CbxList.ClassName; SleNoneBtn.onclick=function() { for(vari=0,j=pCbxList.length;i<j;i++) { pCbxList[i].checked=false; }//endfor pGoBtn.click(); } pText.parentNode.insertBefore(SleNoneBtn,pText); varFirstBtn=document.createElement("button"); FirstBtn.innerHTML="首项"; FirstBtn.className=Tl.Element.CbxList.ClassName; FirstBtn.onclick=function() { for(vari=0,j=pCbxList.length;i<j;i++) { pCbxList[i].checked=false;; }//endfor pCbxList[0].checked=true; pGoBtn.click(); } pText.parentNode.insertBefore(FirstBtn,pText); varPrevBtn=document.createElement("button"); PrevBtn.innerHTML="上项"; PrevBtn.className=Tl.Element.CbxList.ClassName; PrevBtn.onclick=function() { variIndex=null; for(vari=0,j=pCbxList.length;i<j;i++) { if(pCbxList[i].checked)iIndex=i; pCbxList[i].checked=false; }//endfor if(iIndex!=null) { if(iIndex===0)iIndex=pCbxList.length-1; elseiIndex--; } else { iIndex=0; } pCbxList[iIndex].checked=true; pGoBtn.click(); } pText.parentNode.insertBefore(PrevBtn,pText); varNextBtn=document.createElement("button"); NextBtn.innerHTML="下项"; NextBtn.className=Tl.Element.CbxList.ClassName; NextBtn.onclick=function() { variIndex=null; for(vari=0,j=pCbxList.length;i<j;i++) { if(pCbxList[i].checked)iIndex=i; pCbxList[i].checked=false; }//endfor if(iIndex!=null) { if(iIndex===pCbxList.length-1)iIndex=0; elseiIndex++; } else { iIndex=0; } pCbxList[iIndex].checked=true; pGoBtn.click(); } pText.parentNode.insertBefore(NextBtn,pText); varLastBtn=document.createElement("button"); LastBtn.innerHTML="末项"; LastBtn.className=Tl.Element.CbxList.ClassName; LastBtn.onclick=function() { for(vari=0,j=pCbxList.length;i<j;i++) { pCbxList[i].checked=false; }//endfor pCbxList[pCbxList.length-1].checked=true; pGoBtn.click(); } pText.parentNode.insertBefore(LastBtn,pText); varTextEle=document.createTextNode("显示:"); pText.parentNode.insertBefore(TextEle,pText); Tl.Theme.Select.Id=Tl.Init.Name+Tl.Theme.Select.Id+Tl.Postfix; varThemeSle=document.createElement("select"); ThemeSle.className=Tl.Element.InvertCbx.ClassName; ThemeSle.id=Tl.Theme.Select.Id; pText.parentNode.insertBefore(ThemeSle,pText); Tl.Theme.Select.Main=document.getElementById(Tl.Theme.Select.Id); pSelect=Tl.Theme.Select.Main; //清除非OnloadBugForIE if(Tl.Theme.DefaultinTl.Theme.HashTable.Object) { fAddOption(pSelect,Tl.Theme.HashTable.Item(Tl.Theme.Default),Tl.Theme.Default,true,true); } for(variinTl.Theme.HashTable.Object) { if(i!=Tl.Theme.Default) { fAddOption(pSelect,Tl.Theme.HashTable.Item(i),i,false,false); } }//endif pSelect.onchange= function() { fSetNullContainerHbContent(); Tl.Theme.Default=this.value; pGoBtn.click(); } varTextEle=document.createTextNode("反向:"); pText.parentNode.insertBefore(TextEle,pText); varTempEle=document.createElement("input"); TempEle.type="checkbox"; TempEle.className=Tl.Element.InvertCbx.ClassName; TempEle.id=Tl.Init.Name+Tl.Element.InvertCbx.Id+Tl.Postfix; Tl.Element.InvertCbx.Id=TempEle.id; pText.parentNode.insertBefore(TempEle,pText); Tl.Element.InvertCbx.Main=document.getElementById(Tl.Element.InvertCbx.Id); pInvertCbx=Tl.Element.InvertCbx.Main; pInvertCbx.onclick= function() { fSetNullContainerHbContent(); if(this.checked) { Tl.Invert=true; } else { Tl.Invert=false; } pGoBtn.click(); }//endpInvertCbx.onclick }//endfunctionfGo functionfGetCompColor(sInput,sOpt,bNoSharp,bDebug) {//shawl.qiuscript if(!sInput)sInput="#000000"; if(!sOpt)sOpt='hex'; sOpt=sOpt.toLowerCase(); vararCell=[]; vararHex=[]; vararHexFinal=[]; vararInt=[]; vararIntFinal=[]; varDebug=bDebug; if(Debug) { alert ( "sInput:"+sInput +"sOpt:"+sOpt ); } sInput=sInput.replace(/^/#/,""); switch(sOpt) { case"rgb": break; default: if(sInput.length==3) { vararTemp=fStringToArray(sInput); sInput=""+arTemp[0]+arTemp[0]+arTemp[1]+arTemp[1]+arTemp[2]+arTemp[2]; } if(sInput.length==6) { arCell=fStringToArray(sInput); arHex[0]="0x"+arCell[0]+arCell[1]; arHex[1]="0x"+arCell[2]+arCell[3]; arHex[2]="0x"+arCell[4]+arCell[5]; arInt[0]=parseInt(arHex[0],16); arInt[1]=parseInt(arHex[1],16); arInt[2]=parseInt(arHex[2],16); arIntFinal[0]=Math.abs(255-arInt[0]); arIntFinal[1]=Math.abs(255-arInt[1]); arIntFinal[2]=Math.abs(255-arInt[2]); arHexFinal[0]=fPadStr(arIntFinal[0].toString(16)).toUpperCase(); arHexFinal[1]=fPadStr(arIntFinal[1].toString(16)).toUpperCase(); arHexFinal[2]=fPadStr(arIntFinal[2].toString(16)).toUpperCase(); if(Debug) { alert("arCell:"+arCell); alert("arHex:"+arHex); alert("arInt:"+arInt); alert("arIntFinal:"+arIntFinal); alert("arHexFinal:"+arHexFinal); } if(bNoSharp)returnarHexFinal.join(""); return"#"+arHexFinal.join(""); } else { alert("无法识别的十六进制颜色代码!"); } break; } return"000000"; functionfStringToArray(sInput) {//shawl.qiuscript vararCell=[]; variCount=0; variLen=sInput.length; while(iCount<iLen) { arCell[iCount]=sInput.charAt(iCount); iCount++; } returnarCell; }//endfunctionfStringToArray functionfPadStr(sSrc,sPad,nLen) {//shawl.qiuscript if(!sSrc)returnfalse; if(!sPad)sPad='0'; if(!nLen)nLen=2; sSrc+=''; if(sSrc.length>=nLen)returnsSrc; sPad=newArray(nLen+1).join(sPad); varre=newRegExp('.*(.{'+(nLen)+'})$'); return(sPad+sSrc).replace(re,'$1'); }//endfunctionfPadStr }//endfunctionfGetCompColor functionfAddOption(sle,text,value,defaultSelected,selected) {//shawl.qiuscript if(!defaultSelected)defaultSelected=false; if(!selected)selected=false; sle.options[sle.options.length]=newOption(text,value,defaultSelected,selected); }//endfunctionfAddOption functionfRandomLetter(nLen,sCase) {//shawl.qiucode varar=''; vararUp=['A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S', 'T','U','V','W','X','Y','Z']; vararLw=['a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t', 'u','v','w','x','y','z']; vararDgt=[0,1,2,3,4,5,6,7,8,9]; switch(sCase) { case'upper':ar=arUp;break; case'lower':ar=arLw;break; case'letter':ar=arUp.concat(arLw);break; default:ar=arUp.concat(arLw,arDgt); } if(nLen&&nLen>0) { if(!isFinite(nLen))returnfalse; if(nLen<0)returnfalse; variLetter=''; nLen=parseInt(nLen); for(vari=0;i<nLen;i++) { iLetter+=ar[fRandomBy(0,ar.length-1)]; } returniLetter; } returnar[fRandomBy(0,ar.length-1)]; functionfRandomBy(under,over) {//shawl.qiuscript switch(arguments.length) { case1:returnparseInt(Math.random()*under+1); case2:returnparseInt(Math.random()*(over-under+1)+under); default:return0; }//endswitch }//endfunctionfRandomBy }//endfunctionfRandomLetter functionfClearArrayRepeats(ItemAr,bTrim,ReOptStr,iOrderOpt) {//shawl.qiuscript varDebug=false; varResultAr=[]; varResultArCount=0; varMarkStr="<>sqmark<>"; varCopyAr=[]; variCount=0; variLen=ItemAr.length; if(!ReOptStr)ReOptStr="gi"; while(iCount<iLen) { if(bTrim) CopyAr[iCount]=MarkStr+ItemAr[iCount].replace(/^/s+|/s+$/g,"")+MarkStr; else CopyAr[iCount]=MarkStr+ItemAr[iCount]+MarkStr; iCount++; } varTempStr=""; varAllStr=CopyAr.join(""); varTempAr=[]; varGetItemRe=newRegExp(MarkStr+"(.*?)"+MarkStr,ReOptStr); AllStr.replace ( GetItemRe, function($0,$1) { varIdStr=MarkStr+$1+MarkStr; if(TempStr.indexOf(IdStr)==-1) { if(Debug) alert(IdStr); TempStr+=IdStr; ResultAr[ResultArCount++]=$1; } } ) if(Debug) { alert ( "ItemAr:"+ItemAr +"/nAllStr:"+AllStr +"/nResultAr:"+ResultAr ); } returnfArOdr(ResultAr,iOrderOpt); functionfArOdr(array,pram) { if(!pram)varpram=1; switch(pram) { case2:returnarray.reverse(); case3:returnarray.sort(function(a,b){returna-b;}); case4:returnarray.sort(function(a,b){returnb-a;}); default:returnarray.sort(); }//endswitch }//endfunctionfArOdr }//functionfClearArrayRepeats functionfFade(sOriginalColor,sFinalColor,iTime,sOpt/*positive|negative|auto*/,bPadSharp) {//shawl.qiuscript:returnArray if(!sOriginalColor||sOriginalColor=="") { alert("原色不能为空!"); return; } if(!sFinalColor||sFinalColor=="") { alert("最终色不能为空!"); return; } if(!iTime||typeof(iTime)!="number")iTime=5; if(!sOpt)sOpt="auto"; varsSharp=""; if(bPadSharp)sSharp="#"; varDebug=false; varoAr=fSplitColor(sOriginalColor); varoArInt=fHexArrayToInt(oAr); varfAr=fSplitColor(sFinalColor); varfArInt=fHexArrayToInt(fAr); varReturnAr=[]; switch(sOpt) { default: varSubtractAr=[]; varSpanAr=[]; varReturnArInt=[]; for(vari=0,j=oArInt.length;i<j;i++) { SubtractAr[i]=fArInt[i]-oArInt[i]; SpanAr[i]=SubtractAr[i]/iTime; } for(vari=0,j=iTime;i<j;i++) { ReturnArInt[i]=[]; ReturnArInt[i][0]=parseInt(oArInt[0]+(SpanAr[0]*(i+1))); ReturnArInt[i][1]=parseInt(oArInt[1]+(SpanAr[1]*(i+1))); ReturnArInt[i][2]=parseInt(oArInt[2]+(SpanAr[2]*(i+1))); ReturnAr[i]="" +sSharp +fPadStr(ReturnArInt[i][0].toString(16)).toUpperCase() +fPadStr(ReturnArInt[i][1].toString(16)).toUpperCase() +fPadStr(ReturnArInt[i][2].toString(16)).toUpperCase() ; } sFinalColor=sFinalColor.replace(/^/#/,""); if(bPadSharp)sFinalColor="#"+sFinalColor; ReturnAr[ReturnAr.length-1]=sFinalColor.toUpperCase(); break; } if(Debug) { alert ( "oAr:"+oAr +"/noArInt:"+oArInt +"/nfAr:"+fAr +"/nfArInt:"+fArInt +"/ntypeof(sOpt):"+typeof(sOpt) +"/nSubtractAr:"+SubtractAr +"/nSpanAr:"+SpanAr +"/nReturnArInt:"+ReturnArInt +"/nReturnAr:"+ReturnAr ); }//endif returnReturnAr.slice(); functionfPadStr(sSrc,sPad,nLen) {//shawl.qiuscript if(!sSrc)returnfalse; if(!sPad)sPad='0'; if(!nLen)nLen=2; sSrc+=''; if(sSrc.length>=nLen)returnsSrc; sPad=newArray(nLen+1).join(sPad); varre=newRegExp('.*(.{'+(nLen)+'})$'); return(sPad+sSrc).replace(re,'$1'); }//endfunctionfPadStr functionfHexArrayToInt(ar) {//shawl.qiuscript:returnarray varTempAr=[]; for(vari=0,j=ar.length;i<j;i++) { TempAr[i]=parseInt(ar[i],16); } returnTempAr.slice(); }//endfunctionfHexArrayToInt functionfSplitColor(sColor) {//shawl.qiuscript:returnarray if(!sColor||sColor=="") { alert("颜色不能为空!"); return; } varDebug=true; sColor=sColor.replace(/^/#/,""); if(sColor.length==3) { varsTemp=""; for(vari=0,j=sColor.length;i<j;i++) { sTemp+=""+sColor.charAt(i)+sColor.charAt(i); } sColor=sTemp; } if(sColor.length!=6) { alert("无法识别的颜色代码!") return; } vararHex=[]; arHex[0]=""+sColor.charAt(0)+sColor.charAt(1); arHex[1]=""+sColor.charAt(2)+sColor.charAt(3); arHex[2]=""+sColor.charAt(4)+sColor.charAt(5); returnarHex.slice(); }//endfunctionfSplitColor }//endfunctionfFade
functionfRed() {//returnstring varAr=[]; varHb=newHashTable(); //红色系 Hb.Add("Alizarin","#E32636",{En:"Alizarin",Zh:"深茜红"}); Hb.Add("Amaranth","#E52B50",{En:"Amaranth",Zh:"紫红色"}); Hb.Add("Burgundy","#900020",{En:"Burgundy",Zh:"勃艮第酒红"}); Hb.Add("Cardinal","#C41E3A",{En:"Cardinal",Zh:"枢机红"}); Hb.Add("Carmine","#960018",{En:"Carmine",Zh:"胭脂红"}); Hb.Add("Cerise","#DE3163",{En:"Cerise",Zh:"樱桃红"}); Hb.Add("Chestnut","#CD5C5C",{En:"Chestnut",Zh:"栗子色"}); Hb.Add("CoralRed","#FF4040",{En:"CoralRed",Zh:"珊瑚红"}); Hb.Add("Crimson","#DC143C",{En:"Crimson",Zh:"珊瑚红"}); Hb.Add("DarkPink","#E75480",{En:"DarkPink",Zh:"深粉色"}); Hb.Add("FaluRed","#801818",{En:"FaluRed",Zh:"未知"}); Hb.Add("FireEngineRed","#CE2029",{En:"FireEngineRed",Zh:"未知"}); Hb.Add("Fuchsia","#FF00FF",{En:"Fuchsia",Zh:"品红"}); Hb.Add("Girlsnberry","#D15C5C",{En:"Girlsnberry",Zh:"Girlsnberry"}); Hb.Add("HollyWoodCerise","#F400A1",{En:"HollyWoodCerise",Zh:"HollyWoodCerise"}); Hb.Add("Magenta","#FF0090",{En:"Magenta",Zh:"洋红"}); Hb.Add("Maroon","#800000",{En:"Maroon",Zh:"栗色"}); Hb.Add("Mauve","#E0B0FF",{En:"Mauve",Zh:"木槿紫"}); Hb.Add("PersianRed","#CC3333",{En:"PersianRed",Zh:"波斯红"}); Hb.Add("Pink","#FFC0CB",{En:"Pink",Zh:"粉红"}); Hb.Add("Pomegranate","#F34723",{En:"Pomegranate",Zh:"石榴红"}); Hb.Add("Red","#FF0000",{En:"Red",Zh:"红色"}); Hb.Add("RedViolet","#C71585",{En:"RedViolet",Zh:"紫红"}); Hb.Add("Rose","#FF007F",{En:"Rose",Zh:"玫瑰红"}); Hb.Add("Rust","#B7410E",{En:"Rust",Zh:"铁锈红"}); Hb.Add("Puce","#CC8899",{En:"Puce",Zh:"红褐色"}); Hb.Add("Sangria","#92000A",{En:"Sangria",Zh:"桑格里洒红"}); Hb.Add("Scarlet","#FF2400",{En:"Scarlet",Zh:"腥红"}); Hb.Add("ShockingPink","#FC0FC0",{En:"ShockingPink",Zh:"ShockingPink"});
Hb.Add("TerraCotta","#CC4E5C",{En:"TerraCotta",Zh:"TerraCotta"}); Hb.Add("VenetianRed","#C80815",{En:"VenetianRed",Zh:"威尼斯红"}); Hb.Add("Vermilion","#E34234",{En:"Vermilion",Zh:"朱红"}); Hb.Add("Ruby","#C80852",{En:"Ruby",Zh:"宝石红"}); Hb.Add("RosePink","#EE869A",{En:"RosePink",Zh:"浅玫瑰红"}); Hb.Add("SpinelRed","#F09192",{En:"SpinelRed",Zh:"尖晶石红"}); Hb.Add("OperaMauve","#E198C0",{En:"OperaMauve",Zh:"优品紫红"}); Hb.Add("CoralPink","#F19C9F",{En:"CoralPink",Zh:"浅珊瑚红"}); Hb.Add("Flamingo","#F5B2B2",{En:"Flamingo",Zh:"火鹤红"}); Hb.Add("PearlPink","#F7C8CF",{En:"PearlPink",Zh:"浅珍珠红"}); Hb.Add("ShellPink","#F8C6B5",{En:"ShellPink",Zh:"壳黄红"}); Hb.Add("BabyPink","#FCE5DF",{En:"BabyPink",Zh:"浅粉红"}); Hb.Add("SalmonPink","#F29B87",{En:"SalmonPink",Zh:"鲑红"}); Hb.Add("StrongRed","#D8000F",{En:"StrongRed",Zh:"鲜红"}); Hb.Add("OldRose","#C2737F",{En:"OldRose",Zh:"灰玫红"}); varsIdentifier="Red"; fShowAnchorNav(sIdentifier,"红色系",Ar); fDisplay(Hb,sIdentifier,Ar); Ar.push("<hr/>"); Hb=null; returnAr.join(""); }//endfunctionfRed functionfOrange() { varAr=[]; varHb=newHashTable(); //橙色系 Hb.Add("Orange","#FF7F00",{En:"Orange",Zh:"橙色"}); Hb.Add("Amber","#FFBF00",{En:"Amber",Zh:"琥珀色"}); Hb.Add("Coral","#FF7F50",{En:"Coral",Zh:"珊瑚红"}); Hb.Add("DarkSalmon","#E9967A",{En:"DarkSalmon",Zh:"暗鲑红"}); Hb.Add("Gamboge","#EF9B0F",{En:"Gamboge",Zh:"橙黄色"}); Hb.Add("InternationalOrange","#FF4F00",{En:"InternationalOrange",Zh:"国际橙"}); Hb.Add("Mahogany","#C04000",{En:"Mahogany",Zh:"桃木红"}); Hb.Add("Peach","#FFE5B4",{En:"Peach",Zh:"桃色"}); Hb.Add("PeachOrange","#FFCC99",{En:"PeachOrange",Zh:"桃橙色"}); Hb.Add("PeachYellow","#FADFAD",{En:"PeachYellow",Zh:"桃黄色"}); Hb.Add("PinkOrange","#FF9966",{En:"PinkOrange",Zh:"粉橙色"}); Hb.Add("Pomegranate","#F34723",{En:"Pomegranate",Zh:"石榴红"}); Hb.Add("Pumpkin","#FF7518",{En:"Pumpkin",Zh:"南瓜色"}); Hb.Add("Rust","#B7410E",{En:"Rust",Zh:"铁锈红"}); Hb.Add("SafetyOrange","#FF6600",{En:"SafetyOrange",Zh:"SafetyOrange"}); Hb.Add("Salmon","#FF8C69",{En:"Salmon",Zh:"鲑红"}); Hb.Add("Tangerine","#F28500",{En:"Tangerine",Zh:"橘色"}); Hb.Add("Tawny","#CD5700",{En:"Tawny",Zh:"黄褐色"}); Hb.Add("UneceAmber","#FF7E00",{En:"UneceAmber",Zh:"UneceAmber"}); Hb.Add("Vermilion","#E34234",{En:"Vermilion",Zh:"朱红"}); Hb.Add("BurntOrange","#CC5500",{En:"BurntOrange",Zh:"燃橙"}); Hb.Add("Apricot","#FBCEB1",{En:"Apricot",Zh:"杏黄"}); Hb.Add("CarrotOrange","#ED9121",{En:"CarrotOrange",Zh:"胡萝卜橙"}); Hb.Add("OrangePeel","#FFA000",{En:"OrangePeel",Zh:"OrangePeel"}); Hb.Add("OrangeWeb","#FFA500",{En:"OrangeWeb",Zh:"橙色"}); Hb.Add("Brown","#964B00",{En:"Brown",Zh:"褐色"}); Hb.Add("Persimmon","#ED6E3D",{En:"Persimmon",Zh:"柿子橙"}); Hb.Add("SunOrange","#F18D00",{En:"SunOrange",Zh:"阳橙"}); Hb.Add("TropicalOrange","#F39839",{En:"TropicalOrange",Zh:"热带橙"}); Hb.Add("HoneyOrange","#F9C270",{En:"HoneyOrange",Zh:"密橙"}); Hb.Add("Apricot1","#E5A96B",{En:"Apricot1",Zh:"杏黄"}); Hb.Add("SandBeige","#ECD6CA",{En:"SandBeige",Zh:"沙棕"}); Hb.Add("Beige","#E3CCA9",{En:"Beige",Zh:"棕"}); Hb.Add("PaleOcre","#D3B78F",{En:"PaleOcre",Zh:"灰土"}); Hb.Add("Camel","#B58654",{En:"Camel",Zh:"驼"}); Hb.Add("CocountBrown","#6A3315",{En:"CocountBrown",Zh:"椰褐"}); varsIdentifier="Orange"; fShowAnchorNav(sIdentifier,"橙色系",Ar); fDisplay(Hb,sIdentifier,Ar); Ar.push("<hr/>"); Hb=null; returnAr.join(""); }//endfunctionfOrange functionfYellow() { varAr=[]; varHb=newHashTable(); //黄色系 Hb.Add("Amber","#FFBF00",{En:"Amber",Zh:"琥珀色"}); Hb.Add("Beige","#F5F5DC",{En:"Beige",Zh:"棕色"}); Hb.Add("Buff","#F0DC82",{En:"Buff",Zh:"暗黄色"}); Hb.Add("Corn","#FBEC5D",{En:"Corn",Zh:"玉米色"}); Hb.Add("Cream","#FFFDD0",{En:"Cream",Zh:"奶油色"}); Hb.Add("DarkGoldenrod","#B8860B",{En:"DarkGoldenrod",Zh:"暗金菊色"}); Hb.Add("Ecru","#CDB891",{En:"Ecru",Zh:"淡褐色"}); Hb.Add("Flax","#EEDC82",{En:"Flax",Zh:"亚麻色"}); Hb.Add("Gamboge","#EF9B0F",{En:"Gamboge",Zh:"藤黄"}); Hb.Add("Golden","#FFD700",{En:"Golden",Zh:"金色"}); Hb.Add("Goldenrod","#DAA520",{En:"Goldenrod",Zh:"金菊色"}); Hb.Add("Khaki","#C3B091",{En:"Khaki",Zh:"暗卡奇色"}); Hb.Add("Lemon","#FDE910",{En:"Lemon",Zh:"柠檬色"}); Hb.Add("LemonChiffon","#FFFACD",{En:"LemonChiffon",Zh:"柠檬绸色"}); Hb.Add("Lime","#BFFF00",{En:"Lime",Zh:"柠檬绿"}); Hb.Add("Mustard","#FFDB58",{En:"Mustard",Zh:"芥末黄"}); Hb.Add("NavajoWhite","#FFDEAD",{En:"NavajoWhite",Zh:"那瓦霍白"}); Hb.Add("OldGold","#CFB53B",{En:"OldGold",Zh:"深黄色"}); Hb.Add("Olive","#808000",{En:"Olive",Zh:"橄榄色"}); Hb.Add("PapayaWhip","#FFEFD5",{En:"PapayaWhip",Zh:"番木瓜色"}); Hb.Add("PeachYellow","#FADFAD",{En:"PeachYellow",Zh:"桃黄色"}); Hb.Add("Pear","#D1E231",{En:"Pear",Zh:"梨色"}); Hb.Add("Saffron","#F4C430",{En:"Saffron",Zh:"橙黄色"}); Hb.Add("SchoolBusYellow","#FFD800",{En:"SchoolBusYellow",Zh:"SchoolBusYellow"}); Hb.Add("SelectiveYellow","#FFBA00",{En:"SelectiveYellow",Zh:"SelectiveYellow"}); Hb.Add("TangerineYellow","#FFCC00",{En:"TangerineYellow",Zh:"橘黄色"}); Hb.Add("Yellow","#FFFF00",{En:"Yellow",Zh:"黄色"}); Hb.Add("Apricot","#FBCEB1",{En:"Apricot",Zh:"杏黄"}); Hb.Add("MetallicGold","#D4AF37",{En:"MetallicGold",Zh:"金属黄"}); Hb.Add("ChartreuseYellow","#DFFF00",{En:"ChartreuseYellow",Zh:"查特酒黄"}); Hb.Add("GoldenYellow","#FFDF00",{En:"GoldenYellow",Zh:"金黄色"}); Hb.Add("GoldenPoppy","#FCC200",{En:"GoldenPoppy",Zh:"罂粟黄"}); Hb.Add("GreenYellow","#ADFF2F",{En:"GreenYellow",Zh:"绿黄"}); Hb.Add("Marigold","#F7AB00",{En:"Marigold",Zh:"万寿菊黄"}); Hb.Add("ChromeYellow","#FDD000",{En:"ChromeYellow",Zh:"铭黄"}); Hb.Add("Jasmine","#FEDD78",{En:"Jasmine",Zh:"茉莉黄"}); Hb.Add("Cream1","#FFEAB4",{En:"Cream1",Zh:"米黄"}); Hb.Add("Ivory","#EBE5D1",{En:"Ivory",Zh:"乳白"}); Hb.Add("ChampagneYellow","#FFF8B1",{En:"ChampagneYellow",Zh:"香槟黄"}); Hb.Add("MoonYellow","#FFF463",{En:"MoonYellow",Zh:"月光黄"}); Hb.Add("CanaryYellow","#FFF100",{En:"CanaryYellow",Zh:"鲜黄"}); Hb.Add("Mimosa","#EDD443",{En:"Mimosa",Zh:"含羞草黄"}); Hb.Add("Ocher","#C48F00",{En:"Ocher",Zh:"黄褐"}); Hb.Add("Khaki1","#B08827",{En:"Khaki1",Zh:"土黄"}); varsIdentifier="Yellow"; fShowAnchorNav(sIdentifier,"黄色系",Ar); fDisplay(Hb,sIdentifier,Ar); Ar.push("<hr/>"); Hb=null; returnAr.join(""); }//endfunctionfYellow functionfGreen() { varAr=[]; varHb=newHashTable(); //绿色系 Hb.Add("Asparagus","#7BA05B",{En:"Asparagus",Zh:"芦笋色"}); Hb.Add("BrightGreen","#66FF00",{En:"BrightGreen",Zh:"明绿"}); Hb.Add("CamouflageGreen","#78866B",{En:"CamouflageGreen",Zh:"CamouflageGreen"}); Hb.Add("Celadon","#ACE1AF",{En:"Celadon",Zh:"青瓷色"}); Hb.Add("Chartreuse","#7FFF00",{En:"Chartreuse",Zh:"查特酒绿"}); Hb.Add("Emerald","#50C878",{En:"Emerald",Zh:"碧绿"}); Hb.Add("FernGreen","#4F7942",{En:"FernGreen",Zh:"蕨绿色"}); Hb.Add("GrayAsparagus","#465945",{En:"GrayAsparagus",Zh:"芦笋灰"}); Hb.Add("Green","#00FF00",{En:"Green",Zh:"绿色"}); Hb.Add("GreenYellow","#ADFF2F",{En:"GreenYellow",Zh:"绿黄色"}); Hb.Add("Jade","#00A86B",{En:"Jade",Zh:"翡翠绿"}); Hb.Add("JungleGreen","#29AB87",{En:"JungleGreen",Zh:"丛林绿"}); Hb.Add("Lime","#BFFF00",{En:"Lime",Zh:"柠檬绿"}); Hb.Add("MossGreen","#ADDFAD",{En:"MossGreen",Zh:"苔藓绿"}); Hb.Add("Myrtle","#21421E",{En:"Myrtle",Zh:"长春花"}); Hb.Add("Olive","#808000",{En:"Olive",Zh:"橄榄色"}); Hb.Add("OliveDrab","#6B8E23",{En:"OliveDrab",Zh:"橄榄军服绿"}); Hb.Add("Pear","#D1E231",{En:"Pear",Zh:"梨色"}); Hb.Add("PineGreen","#01796F",{En:"PineGreen",Zh:"松绿"}); Hb.Add("SeaGreen","#2E8B57",{En:"SeaGreen",Zh:"海绿"}); Hb.Add("SpringGreen","#00FF7F",{En:"SpringGreen",Zh:"春绿"}); Hb.Add("SwampGreen","#ACB78E",{En:"SwampGreen",Zh:"沼泽绿"}); Hb.Add("TeaGreen","#D0F0C0",{En:"TeaGreen",Zh:"茶绿"}); Hb.Add("ForestGreen","#228B22",{En:"ForestGreen",Zh:"森林绿"}); //追加 Hb.Add("AppleGreen","#9EBD19",{En:"AppleGreen",Zh:"苹果绿"}); Hb.Add("FreshLeaves","#A9D06B",{En:"FreshLeaves",Zh:"嫩绿"}); Hb.Add("FoliageGreen","#87A256",{En:"FoliageGreen",Zh:"叶绿"}); Hb.Add("GrassGreen","#AAC468",{En:"GrassGreen",Zh:"草绿"}); Hb.Add("MossGreen","#888637",{En:"MossGreen",Zh:"苔藓绿"}); Hb.Add("IvyGreen","#3D7D53",{En:"IvyGreen",Zh:"常春藤绿"}); Hb.Add("CobaltGreen","#6ABD78",{En:"CobaltGreen",Zh:"钴绿"}); Hb.Add("TurquoiseGreen","#42AB91",{En:"TurquoiseGreen",Zh:"绿松石绿"}); Hb.Add("CeladonGreen","#7BB99B",{En:"CeladonGreen",Zh:"青瓷绿"}); Hb.Add("Malachite","#7BB99B",{En:"Malachite",Zh:"孔雀石绿"}); Hb.Add("Mint","#007850",{En:"Mint",Zh:"薄荷绿"}); Hb.Add("Viridian","#006550",{En:"Viridian",Zh:"铭绿"}); Hb.Add("PeacockGreen","#008077",{En:"PeacockGreen",Zh:"孔雀绿"}); varsIdentifier="Green"; fShowAnchorNav(sIdentifier,"绿色系",Ar); fDisplay(Hb,sIdentifier,Ar); Ar.push("<hr/>"); Hb=null; returnAr.join(""); }//endfunctionfGreen functionfBlueCyan() { varAr=[]; varHb=newHashTable(); //青蓝色系 Hb.Add("HorizonBlue","#B0DCD5",{En:"HorizonBlue",Zh:"苍"}); Hb.Add("LightSkyBlue","#A1D8E6",{En:"LightSkyBlue",Zh:"亮天蓝"}); Hb.Add("AquaBlue","#59C3E2",{En:"AquaBlue",Zh:"水蓝"}); Hb.Add("AzureBlue","#22AEE6",{En:"AzureBlue",Zh:"湛蓝"}); Hb.Add("SkyBlue","#94C6D0",{En:"SkyBlue",Zh:"天蓝"}); Hb.Add("BabyBlue","#B1D4DB",{En:"BabyBlue",Zh:"浅蓝"}); Hb.Add("PaleBlue","#8BB0CD",{En:"PaleBlue",Zh:"灰蓝"}); Hb.Add("SaxeBlue","#4C8DB5",{En:"SaxeBlue",Zh:"萨克斯蓝"}); Hb.Add("Aquamarine","#2983B1",{En:"Aquamarine",Zh:"碧蓝"}); Hb.Add("TurquoiseBlue","#00A4C5",{En:"TurquoiseBlue",Zh:"绿松石蓝"}); Hb.Add("CyanBlue","#008890",{En:"CyanBlue",Zh:"青蓝"}); Hb.Add("PeacockBlue","#006980",{En:"PeacockBlue",Zh:"孔雀蓝"}); Hb.Add("CeruleanBlue","#007BBB",{En:"CeruleanBlue",Zh:"蔚蓝"}); Hb.Add("CobaltBlue","#005DAC",{En:"CobaltBlue",Zh:"钴蓝"}); Hb.Add("Ultramarine","#004098",{En:"Ultramarine",Zh:"深海蓝"}); Hb.Add("RoyalBlue","#1E50A2",{En:"RoyalBlue",Zh:"品蓝"});
varsIdentifier="BlueCyan"; fShowAnchorNav(sIdentifier,"青蓝色系",Ar); fDisplay(Hb,sIdentifier,Ar); Ar.push("<hr/>"); Hb=null; returnAr.join(""); }//endfunctionfBlueCyan functionfCyan() { varAr=[]; varHb=newHashTable(); //青色系 Hb.Add("AliceBlue","#F0F8FF",{En:"AliceBlue",Zh:"爱丽丝蓝"}); Hb.Add("Aqua","#00FFFF",{En:"Aqua",Zh:"水色"}); Hb.Add("Aquamarine","#7FFFD4",{En:"Aquamarine",Zh:"碧蓝色"}); Hb.Add("BabyBlue","#E0FFFF",{En:"BabyBlue",Zh:"浅蓝"}); Hb.Add("BondiBlue","#0095B6",{En:"BondiBlue",Zh:"BondiBlue"}); Hb.Add("Cerulean","#007BA7",{En:"Cerulean",Zh:"天蓝色"}); Hb.Add("Cyan","#00B7EB",{En:"Cyan",Zh:"青色"}); Hb.Add("ElectricBlue","#7DF9FF",{En:"ElectricBlue",Zh:"ElectricBlue"}); Hb.Add("PineGreen","#01796F",{En:"PineGreen",Zh:"松绿"}); Hb.Add("RobinEggBlue","#00CCCC",{En:"RobinEggBlue",Zh:"知更鸟蛋"}); Hb.Add("Teal","#008080",{En:"Teal",Zh:"凫绿"}); Hb.Add("Turquoise","#30D5C8",{En:"Turquoise",Zh:"绿松石绿"}); Hb.Add("Viridian","#40826D",{En:"Viridian",Zh:"Viridian"});
varsIdentifier="Cyan"; fShowAnchorNav(sIdentifier,"青色系",Ar); fDisplay(Hb,sIdentifier,Ar); Ar.push("<hr/>"); Hb=null; returnAr.join(""); }//endfunctionfCyan functionfBlue() { varAr=[]; varHb=newHashTable(); //蓝色系 Hb.Add("AliceBlue","#F0F8FF",{En:"AliceBlue",Zh:"爱丽丝蓝"}); Hb.Add("Azure","#007FFF",{En:"Azure",Zh:"天蓝色"}); Hb.Add("BabyBlue","#E0FFFF",{En:"BabyBlue",Zh:"粉末蓝"}); Hb.Add("Blue","#0000FF",{En:"Blue",Zh:"蓝色"}); Hb.Add("Cerulean","#007BA7",{En:"Cerulean",Zh:"蔚蓝色"}); Hb.Add("CeruleanBlue","#2A52BE",{En:"CeruleanBlue",Zh:"天青蓝"}); Hb.Add("CobaltBlue","#0047AB",{En:"CobaltBlue",Zh:"钴蓝色"}); Hb.Add("CornflowerBlue","#6495ED",{En:"CornflowerBlue",Zh:"矢车菊蓝"}); Hb.Add("DarkBlue","#0000C8",{En:"DarkBlue",Zh:"深蓝色"}); Hb.Add("Denim","#1560BD",{En:"Denim",Zh:"丹宁布色"}); Hb.Add("DodgerBlue","#1E90FF",{En:"DodgerBlue",Zh:"道奇蓝"}); Hb.Add("Indigo","#4B0082",{En:"Indigo",Zh:"靛青色"}); Hb.Add("InternationalKleinBlue","#002FA7",{En:"InternationalKleinBlue",Zh:"国际奇连蓝"}); Hb.Add("LightBlue","#ADD8E6",{En:"LightBlue",Zh:"深蓝色"}); Hb.Add("MidnightBlue","#003366",{En:"MidnightBlue",Zh:"午夜蓝"}); Hb.Add("NavyBlue","#000080",{En:"NavyBlue",Zh:"海军蓝"}); Hb.Add("Periwinkle","#CCCCFF",{En:"Periwinkle",Zh:"长春花色"}); Hb.Add("PersianBlue","#1C39BB",{En:"PersianBlue",Zh:"波斯蓝"}); Hb.Add("PowderBlue","#B0E0E6",{En:"PowderBlue",Zh:"粉末蓝"}); Hb.Add("PrussianBlue","#003153",{En:"PrussianBlue",Zh:"普鲁士蓝"}); Hb.Add("RoyalBlue","#084C9E",{En:"RoyalBlue",Zh:"皇室蓝"}); Hb.Add("Sapphire","#082567",{En:"Sapphire",Zh:"青玉色"}); Hb.Add("SteelBlue","#4682B4",{En:"SteelBlue",Zh:"钢青色"}); Hb.Add("Ultramarine","#120A8F",{En:"Ultramarine",Zh:"群青色"});
varsIdentifier="Blue"; fShowAnchorNav(sIdentifier,"蓝色系",Ar); fDisplay(Hb,sIdentifier,Ar); Ar.push("<hr/>"); Hb=null; returnAr.join(""); }//endfunctionfBlue functionfIndigo() { varAr=[]; varHb=newHashTable(); //靛青色系 Hb.Add("LapisLazuli","#134098",{En:"LapisLazuli",Zh:"天青石靛"}); Hb.Add("SalviaBlue","#5B77AF",{En:"SalviaBlue",Zh:"鼠尾草蓝"}); Hb.Add("WedgwoodBlue","#6684B0",{En:"WedgwoodBlue",Zh:"韦奇伍德瓷蓝"}); Hb.Add("SlateBlue","#527AA3",{En:"SlateBlue",Zh:"岩蓝"}); Hb.Add("SapphireBlue","#005789",{En:"SapphireBlue",Zh:"宝石蓝"}); Hb.Add("MineralBlue","#005178",{En:"MineralBlue",Zh:"矿蓝"}); Hb.Add("StrongBlue","#005978",{En:"StrongBlue",Zh:"浓蓝"}); Hb.Add("MarineBlue","#00456B",{En:"MarineBlue",Zh:"水手蓝"}); Hb.Add("NavyBlue","#001954",{En:"NavyBlue",Zh:"藏青"}); Hb.Add("Indigo","#002E5A",{En:"Indigo",Zh:"靛青"}); Hb.Add("DarkMineralBlue","#38426A",{En:"DarkMineralBlue",Zh:"暗矿蓝"}); Hb.Add("MidnightBlue","#04163A",{En:"MidnightBlue",Zh:"午夜蓝"});
varsIdentifier="Indigo"; fShowAnchorNav(sIdentifier,"靛青色系",Ar); fDisplay(Hb,sIdentifier,Ar); Ar.push("<hr/>"); Hb=null; returnAr.join(""); }//endfunctionfIndigo functionfViolet() { varAr=[]; varHb=newHashTable(); //紫色系 Hb.Add("Amethyst","#9966CC",{En:"Amethyst",Zh:"紫水晶"}); Hb.Add("Cerise","#DE3163",{En:"Cerise",Zh:"樱桃红"}); Hb.Add("Eggplant","#990066",{En:"Eggplant",Zh:"茄色"}); Hb.Add("Fuchsia","#FF00FF",{En:"Fuchsia",Zh:"品红"}); Hb.Add("Heliotrope","#DF73FF",{En:"Heliotrope",Zh:"缬草紫"}); Hb.Add("Indigo","#4B0082",{En:"Indigo",Zh:"靛色"}); Hb.Add("Lavender","#B57EDC",{En:"Lavender",Zh:"薰衣草紫"}); Hb.Add("LavenderBlush","#FFF0F5",{En:"LavenderBlush",Zh:"薰衣草紫红"}); Hb.Add("LavenderGray","#BDBBD7",{En:"LavenderGray",Zh:"薰衣草灰"}); Hb.Add("LavenderRose","#FBA0E3",{En:"LavenderRose",Zh:"LavenderRose"}); Hb.Add("Lilac","#C8A2C8",{En:"Lilac",Zh:"淡紫丁香色"}); Hb.Add("Magenta","#FF00FF",{En:"Magenta",Zh:"洋红"}); Hb.Add("Mauve","#E0B0FF",{En:"Mauve",Zh:"木槿紫"}); Hb.Add("MountbattenPink","#997A8D",{En:"MountbattenPink",Zh:"MountbattenPin"}); Hb.Add("Orchid","#DA70D6",{En:"Orchid",Zh:"兰紫"}); Hb.Add("PalatinatePurple","#682860",{En:"PalatinatePurple",Zh:"巴拉丁紫"}); Hb.Add("PersianIndigo","#32127A",{En:"PersianIndigo",Zh:"波斯靛青"}); Hb.Add("Purple","#660099",{En:"Purple",Zh:"紫色"}); Hb.Add("RedViolet","#C71585",{En:"RedViolet",Zh:"紫红"}); Hb.Add("Rose","#FF007F",{En:"Rose",Zh:"玫瑰红"}); Hb.Add("Thistle","#D8BFD8",{En:"Thistle",Zh:"蓟紫"}); Hb.Add("Violet","#8B00FF",{En:"Violet",Zh:"紫色"}); Hb.Add("VioletEggplant","#991199",{En:"VioletEggplant",Zh:"茄子紫"}); Hb.Add("Wisteria","#C9A0DC",{En:"Wisteria",Zh:"紫藤"}); Hb.Add("Wisterial1","#735B9F",{En:"Wisterial1",Zh:"紫藤"}); Hb.Add("Clematics","#D8BFCB",{En:"Clematics",Zh:"铁钱莲紫"}); Hb.Add("Heliotrope","#6F196F",{En:"Heliotrope",Zh:"缬草紫"}); Hb.Add("MineralViolet","#C5AFC0",{En:"MineralViolet",Zh:"矿紫"}); Hb.Add("Pansy","#8B0062",{En:"Pansy",Zh:"三色堇紫"}); Hb.Add("Mallow","#D369A4",{En:"Mallow",Zh:"锦葵紫"}); Hb.Add("Orchid","#D188A8",{En:"Orchid",Zh:"兰紫"}); Hb.Add("PailLilac","#EDE0E6",{En:"PailLilac",Zh:"淡紫丁香"}); Hb.Add("GrayishPurple","#9D899D",{En:"GrayishPurple",Zh:"浅灰紫"});
varsIdentifier="Violet"; fShowAnchorNav(sIdentifier,"紫色系",Ar);
fDisplay(Hb,sIdentifier,Ar); Ar.push("<hr/>"); Hb=null; returnAr.join(""); }//endfunctionfViolet functionfPink() { varAr=[]; varHb=newHashTable(); //粉红色系 Hb.Add("Pink","#FFCBDB",{En:"Pink",Zh:"粉红"}); Hb.Add("Camation","#F95A61",{En:"Camation",Zh:"康乃馨红"}); Hb.Add("Fuchsia","#FF00FF",{En:"Fuchsia",Zh:"品红"}); Hb.Add("Magenta","#EF0090",{En:"Magenta",Zh:"洋红"}); Hb.Add("SalmonPink","#FF91A4",{En:"SalmonPink",Zh:"浅鲑红"}); Hb.Add("DeepPink","#FF1493",{En:"DeepPink",Zh:"深粉红"}); Hb.Add("HollywodCerise","#F400A1",{En:"HollywodCerise",Zh:"好莱坞樱桃色"}); Hb.Add("HotPink","#FF69B4",{En:"HotPink",Zh:"暖粉红"}); Hb.Add("MediumPink","#FFB6C1",{En:"MediumPink",Zh:"中粉红色"}); Hb.Add("ShockingPink","#FC0FC0",{En:"ShockingPink",Zh:"ShockingPink"}); Hb.Add("CheeryBlossomPink","#F6ADD6",{En:"CheeryBlossomPink",Zh:"CheeryBlossomPink"}); Hb.Add("CoralPink","#F88379",{En:"CoralPink",Zh:"浅珊瑚红"}); Hb.Add("FrenchRose","#F64A8A",{En:"FrenchRose",Zh:"法兰西玫瑰色"}); Hb.Add("LavenderPink","#FBAED2",{En:"LavenderPink",Zh:"浅薰衣草色"}); Hb.Add("CarminePink","#FE28A2",{En:"CarminePink",Zh:"浅胭脂红"}); Hb.Add("CerisePink","#EB4C42",{En:"CerisePink",Zh:"浅樱桃红"}); Hb.Add("FuchisaPink","#EC3B83",{En:"FuchisaPink",Zh:"浅品红"}); Hb.Add("JapanesePink","#EC3B83",{En:"JapanesePink",Zh:"日本粉红"}); Hb.Add("PersianPink","#F77FBE",{En:"PersianPink",Zh:"波斯粉红"}); Hb.Add("DarkPink","#E75480",{En:"DarkPink",Zh:"深粉红"}); Hb.Add("HotMagenta","#FF00CC",{En:"HotMagenta",Zh:"暖洋红"}); Hb.Add("LavenderRose","#FBA0E3",{En:"LavenderRose",Zh:"深薰衣草"}); Hb.Add("Rose","#FF007F",{En:"Rose",Zh:"玫瑰红"}); Hb.Add("ThulianPink","#DE6FA1",{En:"ThulianPink",Zh:"ThulianPink"}); Hb.Add("Amaranth","#E52B50",{En:"Amaranth",Zh:"紫红色"}); Hb.Add("LightThulianPink","#E68FAC",{En:"LightThulianPink",Zh:"LightThulianPink"}); Hb.Add("Puce","#CC8899",{En:"Puce",Zh:"红褐色"}); Hb.Add("RosePink","#FF66CC",{En:"RosePink",Zh:"红褐色"}); Hb.Add("TeaRose","#F4C2C2",{En:"TeaRose",Zh:"深茶色"}); Hb.Add("AmaranthPink","#F19CBB",{En:"AmaranthPink",Zh:"浅紫红色"}); Hb.Add("BrinkPink","#FB607F",{En:"BrinkPink",Zh:"BrinkPink"}); Hb.Add("Cerise","#DE3163",{En:"Cerise",Zh:"樱桃红"}); Hb.Add("DeepCarminePink","#EF3038",{En:"DeepCarminePink",Zh:"DeepCarminePink"}); Hb.Add("UltraPink","#FF6FFF",{En:"UltraPink",Zh:"浓粉红"});
varsIdentifier="Pink"; fShowAnchorNav(sIdentifier,"粉红色系",Ar);
fDisplay(Hb,sIdentifier,Ar); Ar.push("<hr/>"); Hb=null; returnAr.join(""); }//endfunctionfPink functionfBrown() { varAr=[]; varHb=newHashTable(); //褐色系 Hb.Add("Auburn","#712F26",{En:"Auburn",Zh:"赤褐色"}); Hb.Add("Bistre","#3D2B1F",{En:"Bistre",Zh:"Bistre"}); Hb.Add("Brown","#964B00",{En:"Brown",Zh:"褐色"}); Hb.Add("Buff","#F0DC82",{En:"Buff",Zh:"暗黄色"}); Hb.Add("Burgundy","#900020",{En:"Burgundy",Zh:"勃艮第酒红"}); Hb.Add("BurntSienna","#E97451",{En:"BurntSienna",Zh:"燃黄褐色"}); Hb.Add("BurntUmber","#8A3324",{En:"BurntUmber",Zh:"燃棕色"}); Hb.Add("Copper","#B87333",{En:"Copper",Zh:"红铜色"}); Hb.Add("Liver","#534B4F",{En:"Liver",Zh:"脏红"}); Hb.Add("Mahogany","#C04000",{En:"Mahogany",Zh:"红褐色"}); Hb.Add("Maroon","#800000",{En:"Maroon",Zh:"栗色"}); Hb.Add("Ochre","#CC7722",{En:"Ochre",Zh:"赭色"}); Hb.Add("PaleBrown","#987654",{En:"PaleBrown",Zh:"灰褐色"}); Hb.Add("RawUmber","#734A12",{En:"RawUmber",Zh:"RawUmber"}); Hb.Add("Russet","#80461B",{En:"Russet",Zh:"黄褐色"}); Hb.Add("Rust","#B7410E",{En:"Rust",Zh:"铁锈红"}); Hb.Add("SandyBrown","#F4A460",{En:"SandyBrown",Zh:"浅褐色"}); Hb.Add("SealBrown","#321414",{En:"SealBrown",Zh:"SealBrown"}); Hb.Add("Sepia","#704214",{En:"Sepia",Zh:"乌贼墨色"}); Hb.Add("Tan","#D2B48C",{En:"Tan",Zh:"日晒色"}); Hb.Add("Wheat","#F5DEB3",{En:"Wheat",Zh:"小麦色"}); Hb.Add("Zinnwaldite","#EBC2AF",{En:"Zinnwaldite",Zh:"Zinnwaldite"}); Hb.Add("Fallow","#C19A6B",{En:"Fallow",Zh:"淡棕色"}); Hb.Add("Bole","#79443B",{En:"Bole",Zh:"玄红色"}); Hb.Add("Taupe","#483C32",{En:"Taupe",Zh:"暗灰褐色"}); Hb.Add("MediumTaupe","#674C47",{En:"MediumTaupe",Zh:"中暗灰褐色"}); Hb.Add("PaleTaupe","#BC987E",{En:"PaleTaupe",Zh:"灰暗灰褐色"}); Hb.Add("DarkKhaki","#BDB76B",{En:"DarkKhaki",Zh:"暗卡其色"}); Hb.Add("Khaki","#C3B091",{En:"Khaki",Zh:"卡其色"}); Hb.Add("LightKhaki","#F0E68C",{En:"LightKhaki",Zh:"亮卡其色"}); Hb.Add("SandyTaupe","#967117",{En:"SandyTaupe",Zh:"软暗灰褐色"}); Hb.Add("Ecru","#CDB891",{En:"Ecru",Zh:"淡褐色"}); Hb.Add("Beige","#F5F5DC",{En:"Beige",Zh:"棕色"});
varsIdentifier="Brown"; fShowAnchorNav(sIdentifier,"褐色系",Ar);
fDisplay(Hb,sIdentifier,Ar); Ar.push("<hr/>"); Hb=null; returnAr.join(""); }//endfunctionfBrown functionfGrey() { varAr=[]; varHb=newHashTable(); //灰色系 Hb.Add("Grey","#808080",{En:"Grey",Zh:"灰色"}); Hb.Add("Arsenic","#3B444B",{En:"Arsenic",Zh:"砒霜"}); Hb.Add("Bistre","#3D2B1F",{En:"Bistre",Zh:"Bistre"}); Hb.Add("Black","#000000",{En:"Black",Zh:"黑色"}); Hb.Add("Charcoal","#464646",{En:"Charcoal",Zh:"深灰色"}); Hb.Add("Davy'sGrey","#788878",{En:"Davy'sGrey",Zh:"Davy'sGrey"}); Hb.Add("Feldgrau","#4D5D53",{En:"Feldgrau",Zh:"Feldgrau"}); Hb.Add("Liver","#534B4F",{En:"Liver",Zh:"脏红"}); Hb.Add("Payne'sGrey","#404048",{En:"Payne'sGrey",Zh:"佩恩灰"}); Hb.Add("SealBrown","#321414",{En:"SealBrown",Zh:"SealBrown"}); Hb.Add("Silver","#C0C0C0",{En:"Silver",Zh:"银色"}); Hb.Add("SlateGrey","#708090",{En:"SlateGrey",Zh:"岩灰"}); Hb.Add("Taupe","#483C32",{En:"Taupe",Zh:"暗灰褐色"}); Hb.Add("PurpleTaupe","#50404D",{En:"PurpleTaupe",Zh:"紫暗灰褐色"}); Hb.Add("MediumTaupe","#674C47",{En:"MediumTaupe",Zh:"中暗灰褐色"}); Hb.Add("TaupeGrey","#8B8589",{En:"TaupeGrey",Zh:"浅暗灰褐色"}); Hb.Add("PaleTaupe","#BC987E",{En:"PaleTaupe",Zh:"灰暗灰褐色"}); //追加 Hb.Add("DarkGray","#1A1A1A",{En:"DarkGray",Zh:"暗灰"}); Hb.Add("CharcoalGray","#333333",{En:"CharcoalGray",Zh:"炭灰"}); Hb.Add("DimGray","#4D4D4D",{En:"DimGray",Zh:"昏灰"}); Hb.Add("Gray60Perc","#666666",{En:"Gray60Perc",Zh:"六十度灰"}); Hb.Add("Gray50Perc","#808080",{En:"Gray50Perc",Zh:"五十度灰"}); Hb.Add("Gray40Perc","#999999",{En:"Gray40Perc",Zh:"四十度灰"}); Hb.Add("Gray30Perc","#B3B3B3",{En:"Gray30Perc",Zh:"三十度灰"}); Hb.Add("Gray20Perc","#CCCCCC",{En:"Gray20Perc",Zh:"二十度灰"}); Hb.Add("Gray10Perc","#E6E6E6",{En:"Gray10Perc",Zh:"十度灰"}); Hb.Add("White","#FFFFFF",{En:"White",Zh:"白色"});
varsIdentifier="Grey"; fShowAnchorNav(sIdentifier,"灰色系",Ar);
fDisplay(Hb,sIdentifier,Ar); Ar.push("<hr/>"); Hb=null; returnAr.join(""); }//endfunctionfGrey functionfWhite() { varAr=[]; varHb=newHashTable(); //白色系 Hb.Add("White","#FFFFFF",{En:"White",Zh:"白色"}); Hb.Add("Cream","#FFFDD0",{En:"Cream",Zh:"奶油色"}); Hb.Add("CosmicLatte","#FFF8E7",{En:"CosmicLatte",Zh:"CosmicLatte"}); Hb.Add("Ivory","#FFFFF0",{En:"Ivory",Zh:"象牙色"}); Hb.Add("Magnolia","#F8F4FF",{En:"Magnolia",Zh:"木兰色"}); Hb.Add("OldLace","#FDF5E6",{En:"OldLace",Zh:"深蕾丝色"}); Hb.Add("Seashell","#FFF5EE",{En:"Seashell",Zh:"海贝色"});
Hb.Add("GhostWhite","#F8F8FF",{En:"GhostWhite",Zh:"幽灵白"}); Hb.Add("MintCream","#F5FFFA",{En:"MintCream",Zh:"薄荷奶油色"}); Hb.Add("Honeydew","#F0FFF0",{En:"Honeydew",Zh:"密瓜绿"}); Hb.Add("Ivory","#FFFFF0",{En:"Ivory",Zh:"象牙色"}); Hb.Add("FloralWhite","#FFFAF0",{En:"FloralWhite",Zh:"花卉白"}); Hb.Add("Linen","#FAF0E6",{En:"Linen",Zh:"亚麻色"}); Hb.Add("Snow","#FFFAFA",{En:"Snow",Zh:"雪色"});
varsIdentifier="White"; fShowAnchorNav(sIdentifier,"白色系",Ar); fDisplay(Hb,sIdentifier,Ar); Ar.push("<hr/>"); Hb=null; returnAr.join(""); }//endfunctionfWhite functionfWeb() { varAr=[]; varHb=newHashTable(); //Web Hb.Add("LightGray","#D3D3D3",{En:"LightGray",Zh:"亮灰"}); Hb.Add("Gainsboro","#DCDCDC",{En:"Gainsboro",Zh:"庚斯博罗灰"}); Hb.Add("WhiteSmoke","#F5F5F5",{En:"WhiteSmoke",Zh:"白烟色"}); Hb.Add("Snow","#FFFAFA",{En:"Snow",Zh:"雪色"}); Hb.Add("RosyBrown","#BC8F8F",{En:"RosyBrown",Zh:"玫瑰褐"}); Hb.Add("IndianRed","#CD5C5C",{En:"IndianRed",Zh:"印度红"}); Hb.Add("FireBrick","#B22222",{En:"FireBrick",Zh:"耐火砖红"}); Hb.Add("DarkRed","#8B0000",{En:"DarkRed",Zh:"暗红"}); Hb.Add("MistyRose","#FFE4E1",{En:"MistyRose",Zh:"雾玫瑰色"}); Hb.Add("Tomato","#FF6347",{En:"Tomato",Zh:"番茄红"}); Hb.Add("Sienna","#A0522D",{En:"Sienna",Zh:"黄土赭"}); Hb.Add("SaddleBrown","#8B4513",{En:"SaddleBrown",Zh:"鞍褐"}); Hb.Add("Chocolate","#D2691E",{En:"Chocolate",Zh:"巧克力色"}); Hb.Add("PeachPuff","#FFDAB9",{En:"PeachPuff",Zh:"粉扑桃色"}); Hb.Add("Bronze","#B87333",{En:"Bronze",Zh:"古铜色"}); Hb.Add("Linen","#FAF0E6",{En:"Linen",Zh:"亚麻色"}); Hb.Add("Peru","#CD853F",{En:"Peru",Zh:"秘鲁色"}); Hb.Add("Bisque","#FFE4C4",{En:"Bisque",Zh:"陶坯黄"}); Hb.Add("DarkOrange","#FF8C00",{En:"DarkOrange",Zh:"暗橙"}); Hb.Add("AntiqueWhite","#FAEBD7",{En:"AntiqueWhite",Zh:"古董白"}); Hb.Add("Tan","#D2B48C",{En:"Tan",Zh:"日晒色"}); Hb.Add("BurlyWood","#DEB887",{En:"BurlyWood",Zh:"硬木色"}); Hb.Add("BlanchedAlmond","#FFEBCD",{En:"BlanchedAlmond",Zh:"杏仁白"}); Hb.Add("NavajoWhite","#FFDEAD",{En:"NavajoWhite",Zh:"那瓦霍白"}); Hb.Add("PaleOcre","#CCB38C",{En:"PaleOcre",Zh:"灰土色"}); Hb.Add("Moccasin","#FFE4B5",{En:"Moccasin",Zh:"鹿皮鞋色"}); Hb.Add("FloralWhite","#FFFAF0",{En:"FloralWhite",Zh:"花卉白"}); Hb.Add("Coffee","#4D3900",{En:"Coffee",Zh:"咖啡色"}); Hb.Add("Comsilk","#FFF8DC",{En:"Comsilk",Zh:"玉米丝色"}); Hb.Add("PaleGoldenrod","#EEE8AA",{En:"PaleGoldenrod",Zh:"灰金菊色"}); Hb.Add("Ivory","#FFFFF0",{En:"Ivory",Zh:"象牙色"}); Hb.Add("LightYellow","#FFFFE0",{En:"LightYellow",Zh:"亮黄"}); Hb.Add("LightGoldenrodYellow","#FAFAD2",{En:"LightGoldenrodYellow",Zh:"亮金菊黄"}); Hb.Add("DarkOliveGreen","#556B2F",{En:"DarkOliveGreen",Zh:"暗橄榄绿"}); Hb.Add("LawnGreen","#7CFC00",{En:"LawnGreen",Zh:"草坪绿"});
Hb.Add("Honeydew","#F0FFF0",{En:"Honeydew",Zh:"密瓜绿"}); Hb.Add("DarkSeaGreen","#8FBC8F",{En:"DarkSeaGreen",Zh:"暗海绿"}); Hb.Add("PaleGreen","#98FB98",{En:"PaleGreen",Zh:"灰绿"}); Hb.Add("HorizonBlue","#A6FFCC",{En:"HorizonBlue",Zh:"苍蓝"}); Hb.Add("MediumSeaGreen","#3CB371",{En:"MediumSeaGreen",Zh:"中海绿"}); Hb.Add("MintCream","#F5FFFA",{En:"MintCream",Zh:"薄荷奶油色"}); Hb.Add("MediumSpringGreen","#00FA9A",{En:"MediumSpringGreen",Zh:"中春绿色"}); Hb.Add("MediumAquamarine","#66CDAA",{En:"MediumAquamarine",Zh:"中碧蓝色"}); Hb.Add("TurquoiseBlue","#33E6CC",{En:"TurquoiseBlue",Zh:"绿松石蓝"}); Hb.Add("Turquoise","#30D5C8",{En:"Turquoise",Zh:"绿松石色"}); Hb.Add("LightSeaGreen","#30D5C8",{En:"LightSeaGreen",Zh:"亮海绿"}); Hb.Add("MediumTurquoise","#48D1CC",{En:"MediumTurquoise",Zh:"中绿松石色"}); Hb.Add("LightCyan","#E0FFFF",{En:"LightCyan",Zh:"亮青"}); Hb.Add("PaleTurquoise","#AFEEEE",{En:"PaleTurquoise",Zh:"灰绿松石色"}); Hb.Add("DarkSlateGray","#2F4F4F",{En:"DarkSlateGray",Zh:"暗岩灰"}); Hb.Add("DarkCyan","#008B8B",{En:"DarkCyan",Zh:"暗青"}); Hb.Add("DarkTurquoise","#00CED1",{En:"DarkTurquoise",Zh:"暗绿松石色"}); Hb.Add("CadetBlue","#5F9EA0",{En:"CadetBlue",Zh:"军服蓝"}); Hb.Add("PowderBlue","#B0E0E6",{En:"PowderBlue",Zh:"婴儿粉蓝"}); Hb.Add("StrongBlue","#006374",{En:"StrongBlue",Zh:"浓蓝"}); Hb.Add("DarpSkyBlue","#00BFFF",{En:"DarpSkyBlue",Zh:"深天蓝"}); Hb.Add("LightSkyBlue","#87CEFA",{En:"LightSkyBlue",Zh:"亮天蓝"}); Hb.Add("SlateGray","#708090",{En:"SlateGray",Zh:"岩灰"}); Hb.Add("LightSlateGray","#778899",{En:"LightSlateGray",Zh:"亮岩灰"}); Hb.Add("GhostWhite","#F8F8FF",{En:"GhostWhite",Zh:"幽灵白"}); Hb.Add("DarkSlateBlue","#483D8B",{En:"DarkSlateBlue",Zh:"暗岩蓝"}); Hb.Add("MediumSlateBlue","#7B68EE",{En:"MediumSlateBlue",Zh:"岩蓝"}); Hb.Add("MediumPurple","#9370DB",{En:"MediumPurple",Zh:"中紫红"}); Hb.Add("DarkOrchid","#9932CC",{En:"DarkOrchid",Zh:"暗兰紫"}); Hb.Add("DarkViolet","#9400D3",{En:"DarkViolet",Zh:"暗紫"}); Hb.Add("Plum","#DDA0DD",{En:"Plum",Zh:"亮紫"}); Hb.Add("DarkMagenta","#8B008B",{En:"DarkMagenta",Zh:"暗洋红"}); Hb.Add("MediumVioletRed","#C71585",{En:"MediumVioletRed",Zh:"中青紫红"}); Hb.Add("RoseRed","#FF0DA6",{En:"RoseRed",Zh:"玫瑰红"}); Hb.Add("PaleVioletRed","#DB7093",{En:"PaleVioletRed",Zh:"灰紫红"}); Hb.Add("LightPink","#FFB6C1",{En:"LightPink",Zh:"亮粉红"});
varsIdentifier="Web"; fShowAnchorNav(sIdentifier,"Web色",Ar);
fDisplay(Hb,sIdentifier,Ar); Ar.push("<hr/>"); Hb=null; returnAr.join(""); }//endfunctionfWeb functionfCompColor() { varAr=[]; varHb=newHashTable(); //CompColor for(vari=0,j=Tl.Color.Set.length;i<j;i++) { varsCurColor=Tl.Color.Set[i]; if(sCurColor.indexOf("#")<0)sCurColor="#000000"; varsCompColor=fGetCompColor(sCurColor); variCur=i+1; Hb.Add(sCompColor,sCompColor,{En:"CompColor"+iCur,Zh:"补色"+iCur}); }
varsIdentifier="CompColor"; fShowAnchorNav(sIdentifier,"补色",Ar);
fDisplay(Hb,sIdentifier,Ar); Ar.push("<hr/>"); Hb=null; returnAr.join(""); }//endfunctionfCompColor functionfFaded() { varAr=[]; varHb=newHashTable(); varsTarget=Tl.Faded.TargetTbx.Main.value; variTime=Tl.Faded.TimeTbx.Main.value-0;
for(vari=0,j=Tl.Color.Set.length;i<j;i++) { varFadedAr=fFade(Tl.Color.Set[i],sTarget,iTime,false,true); variCount=0; variLen=FadedAr.length; while(iCount<iLen) { variCur=iCount+1; varArKey=[FadedAr[iCount],"_",i+1,"-",iCur]; Hb.Add(ArKey.join(""),FadedAr[iCount],{En:"Faded"+iCur,Zh:"渐变"+iCur}); iCount++; } }
varsIdentifier="Faded"; fShowAnchorNav(sIdentifier,"渐变",Ar); fDisplay(Hb,sIdentifier,Ar); Hb=null; Ar.push("<hr/>"); returnAr.join(""); }//endfunctionfFaded functionfJpRedViolet() { varAr=[]; varHb=newHashTable(); //JpRedViolet Hb.Add("Ikkonzome","#F08F90",{En:"Ikkonzome",Zh:"一斤染"}); Hb.Add("Momo-iro","#F47983",{En:"Momo-iro",Zh:"桃色"}); Hb.Add("Kōbai-iro","#DB5A6B",{En:"Kōbai-iro",Zh:"紅梅色"}); Hb.Add("Nakabeni","#C93756",{En:"Nakabeni",Zh:"中紅"}); Hb.Add("Sakura-iro","#FCC9B9",{En:"Sakura-iro",Zh:"桜色"}); Hb.Add("Arazome","#FFB3A7",{En:"Arazome",Zh:"退紅"}); Hb.Add("Usubeni","#F2666C",{En:"Usubeni",Zh:"薄紅"});
varsIdentifier="JpRedViolet"; fShowAnchorNav(sIdentifier,"Jp红紫",Ar);
fDisplay(Hb,sIdentifier,Ar); Ar.push("<hr/>"); Hb=null; returnAr.join(""); }//endfunctionfJpRedViolet
functionfJpRed() { varAr=[]; varHb=newHashTable(); //JpRed Hb.Add("Tokiha-iro","#F58F84",{En:"Tokiha-iro",Zh:"鴇羽色"}); Hb.Add("Sakuranezumi","#AC8181",{En:"Sakuranezumi",Zh:"桜鼠"}); Hb.Add("Chōshun-iro","#B95754",{En:"Chōshun-iro",Zh:"長春色"}); Hb.Add("Karakurenai","#C91F37",{En:"Karakurenai",Zh:"韓紅花"}); Hb.Add("Enji-iro","#9D2933",{En:"Enji-iro",Zh:"臙脂色"}); Hb.Add("Kokiake","#7B3B3A",{En:"Kokiake",Zh:"深緋"}); Hb.Add("Jinzamomi","#F7665A",{En:"Jinzamomi",Zh:"甚三紅"}); Hb.Add("Mizugaki","#B56C60",{En:"Mizugaki",Zh:"水がき"}); Hb.Add("Umenezumi","#97645A",{En:"Umenezumi",Zh:"梅鼠"}); Hb.Add("Suōkō","#A24F46",{En:"Suōkō",Zh:"蘇芳香"}); Hb.Add("Akabeni","#C3272B",{En:"Akabeni",Zh:"赤紅"}); Hb.Add("Shinshu","#8F1D21",{En:"Shinshu",Zh:"真朱"}); Hb.Add("Azuki-iro","#672422",{En:"Azuki-iro",Zh:"小豆色"}); Hb.Add("Ginshu","#BC2D29",{En:"Ginshu",Zh:"銀朱"}); Hb.Add("Ebicha","#5E2824",{En:"Ebicha",Zh:"海老茶"}); Hb.Add("Kiriume","#8B352D",{En:"Kiriume",Zh:"栗梅"}); Hb.Add("Akebono-iro","#FA7B62",{En:"Akebono-iro",Zh:"曙色"}); Hb.Add("Sangoshu-iro","#F8674F",{En:"Sangoshu-iro",Zh:"珊瑚珠色"}); Hb.Add("Shōjōhi","#DC3023",{En:"Shōjōhi",Zh:"猩猩緋"}); Hb.Add("Shikancha","#AB4C3D",{En:"Shikancha",Zh:"芝翫茶"}); Hb.Add("Kakishibu-iro","#934337",{En:"Kakishibu-iro",Zh:"柿渋色"}); Hb.Add("Benikaba","#9D2B22",{En:"Benikaba",Zh:"紅樺"}); Hb.Add("Benitobi","#913228",{En:"Benitobi",Zh:"紅鳶"}); Hb.Add("Benihibata","#6F3028",{En:"Benihibata",Zh:"紅檜皮"}); Hb.Add("Kurotobi","#351E1C",{En:"Kurotobi",Zh:"黒鳶"}); Hb.Add("Benihi","#F35336",{En:"Benihi",Zh:"紅緋"}); Hb.Add("Terigaki","#D34E36",{En:"Terigaki",Zh:"照柿"}); Hb.Add("Ake","#CF3A24",{En:"Ake",Zh:"緋"}); Hb.Add("Edocha","#A13D2D",{En:"Edocha",Zh:"江戸茶"}); Hb.Add("Bengara-iro","#913225",{En:"Bengara-iro",Zh:"紅柄色"}); Hb.Add("Hihada-iro","#752E23",{En:"Hihada-iro",Zh:"檜皮色"}); Hb.Add("Shishi-iro","#F9906F",{En:"Shishi-iro",Zh:"宍色"}); Hb.Add("Araishu","#FF7952",{En:"Araishu",Zh:"洗朱"}); Hb.Add("Akakō-iro","#F07F5E",{En:"Akakō-iro",Zh:"赤香色"}); Hb.Add("Tokigaracha","#E68364",{En:"Tokigaracha",Zh:"ときがら茶"}); Hb.Add("Ōtan","#FF4E20",{En:"Ōtan",Zh:"黄丹"}); Hb.Add("Sohi","#E35C38",{En:"Sohi",Zh:"蘇比"}); Hb.Add("Enshūcha","#CB6649",{En:"Enshūcha",Zh:"遠州茶"}); Hb.Add("Karacha","#B35C44",{En:"Karacha",Zh:"唐茶"}); Hb.Add("Kabacha","#B14A30",{En:"Kabacha",Zh:"樺茶"}); Hb.Add("Sōdenkaracha","#9B533F",{En:"Sōdenkaracha",Zh:"宗傳唐茶"}); Hb.Add("Suzumecha","#8C4736",{En:"Suzumecha",Zh:"雀茶"}); Hb.Add("Kurikawacha","#60281E",{En:"Kurikawacha",Zh:"栗皮茶"}); Hb.Add("Momoshiocha","#542D24",{En:"Momoshiocha",Zh:"百塩茶"}); Hb.Add("Tobi-iro","#4C221B",{En:"Tobi-iro",Zh:"鳶色"});
varsIdentifier="JpRed"; fShowAnchorNav(sIdentifier,"Jp红",Ar);
fDisplay(Hb,sIdentifier,Ar); Ar.push("<hr/>"); Hb=null; returnAr.join(""); }//endfunctionfJpRed
functionfJpYellowRed() { varAr=[]; varHb=newHashTable(); //JpYellowRed Hb.Add("Kurumizome","#9F7462",{En:"Kurumizome",Zh:"胡桃染"}); Hb.Add("Kaba-iro","#B64925",{En:"Kaba-iro",Zh:"蒲色"}); Hb.Add("Kōrozen","#592B1F",{En:"Kōrozen",Zh:"黄櫨染"}); Hb.Add("Kogecha","#351F19",{En:"Kogecha",Zh:"焦茶"}); Hb.Add("Kokikuchinashi","#F57F4F",{En:"Kokikuchinashi",Zh:"深支子"}); Hb.Add("Araigaki","#EC8254",{En:"Araigaki",Zh:"洗柿"}); Hb.Add("Taisha-iro","#9F5233",{En:"Taisha-iro",Zh:"代赭色"}); Hb.Add("Akashirotsurubami","#EC956C",{En:"Akashirotsurubami",Zh:"赤白橡"}); Hb.Add("Tonocha","#985538",{En:"Tonocha",Zh:"礪茶"}); Hb.Add("Sencha-iro","#824B35",{En:"Sencha-iro",Zh:"煎茶色"}); Hb.Add("Sharegaki","#FFA26B",{En:"Sharegaki",Zh:"洒落柿"}); Hb.Add("Usugaki","#FCA474",{En:"Usugaki",Zh:"薄柿"}); Hb.Add("Kanzō-iro","#FF8936",{En:"Kanzō-iro",Zh:"萱草色"}); Hb.Add("Umezome","#FA9258",{En:"Umezome",Zh:"梅染"}); Hb.Add("Beniukon","#FB8136",{En:"Beniukon",Zh:"紅鬱金"}); Hb.Add("Chōjicha","#8F583C",{En:"Chōjicha",Zh:"丁子茶"}); Hb.Add("Kenpōzome","#2E211B",{En:"Kenpōzome",Zh:"憲法染"}); Hb.Add("Biwacha","#AB6134",{En:"Biwacha",Zh:"枇杷茶"}); Hb.Add("Kohaku-iro","#CA6924",{En:"Kohaku-iro",Zh:"琥珀色"}); Hb.Add("Usukō","#FFA565",{En:"Usukō",Zh:"淡香"}); Hb.Add("Kuchiba-iro","#FFA565",{En:"Kuchiba-iro",Zh:"朽葉色"}); Hb.Add("Kincha","#C66B27",{En:"Kincha",Zh:"金茶"}); Hb.Add("Chōjizome","#C66B27",{En:"Chōjizome",Zh:"丁子染"}); Hb.Add("Kitsune-iro","#985629",{En:"Kitsune-iro",Zh:"狐色"}); Hb.Add("Fushizome","#8C5939",{En:"Fushizome",Zh:"柴染"}); Hb.Add("Kyara-iro","#6A432D",{En:"Kyara-iro",Zh:"伽羅色"}); Hb.Add("Susutake-iro","#593A27",{En:"Susutake-iro",Zh:"煤竹色"}); Hb.Add("Shiracha","#C48E69",{En:"Shiracha",Zh:"白茶"}); Hb.Add("Ōdo-iro","#BE7F51",{En:"Ōdo-iro",Zh:"黄土色"}); Hb.Add("Kinsusutake","#7D4E2D",{En:"Kinsusutake",Zh:"銀煤竹"}); Hb.Add("Kigaracha","#B7702D",{En:"Kigaracha",Zh:"黄唐茶"}); Hb.Add("Kobicha","#6B4423",{En:"Kobicha",Zh:"媚茶"});
varsIdentifier="JpYellowRed"; fShowAnchorNav(sIdentifier,"Jp黄红",Ar);
fDisplay(Hb,sIdentifier,Ar); Ar.push("<hr/>"); Hb=null; returnAr.join(""); }//endfunctionfJpYellowRed functionfJpYellow() { varAr=[]; varHb=newHashTable(); //JpYellow Hb.Add("Usuki","#F7BB7D",{En:"Usuki",Zh:"浅黄"}); Hb.Add("Yamabuki-iro","#FFA400",{En:"Yamabuki-iro",Zh:"山吹色"}); Hb.Add("Tamago-iro","#FFA631",{En:"Tamago-iro",Zh:"玉子色"}); Hb.Add("Hajizome","#E08A1E",{En:"Hajizome",Zh:"櫨染"}); Hb.Add("Yamabukicha","#CB7E1F",{En:"Yamabukicha",Zh:"山吹茶"}); Hb.Add("Kuwazome","#C57F2E",{En:"Kuwazome",Zh:"桑染"}); Hb.Add("Namakabe-iro","#785E49",{En:"Namakabe-iro",Zh:"生壁色"}); Hb.Add("Kuchinashi","#FFB95A",{En:"Kuchinashi",Zh:"支子"}); Hb.Add("Tōmorokoshi-iro","#FAA945",{En:"Tōmorokoshi-iro",Zh:"玉蜀黍色"}); Hb.Add("Shirotsurubami","#CE9F6F",{En:"Shirotsurubami",Zh:"白橡"}); Hb.Add("Kitsurubami","#BB8141",{En:"Kitsurubami",Zh:"黄橡"}); Hb.Add("Tō'ō","#FFB61E",{En:"Tō'ō",Zh:"藤黄"}); Hb.Add("Hanaba-iro","#FFB94E",{En:"Hanaba-iro",Zh:"花葉色"}); Hb.Add("Torinoko-iro","#E2BE9F",{En:"Torinoko-iro",Zh:"鳥の子色"}); Hb.Add("Ukon-iro","#E69B3A",{En:"Ukon-iro",Zh:"鬱金色"}); Hb.Add("Kikuchiba","#E29C45",{En:"Kikuchiba",Zh:"黄朽葉"}); Hb.Add("Rikyūshiracha","#B0927A",{En:"Rikyūshiracha",Zh:"利休白茶"}); Hb.Add("Rikyūcha","#826B58",{En:"Rikyūcha",Zh:"利休茶"}); Hb.Add("Aku-iro","#7F6B5D",{En:"Aku-iro",Zh:"灰汁色"}); Hb.Add("Higosusutake","#7F5D3B",{En:"Higosusutake",Zh:"肥後煤竹"}); Hb.Add("Rokōcha","#665343",{En:"Rokōcha",Zh:"路考茶"}); Hb.Add("Mirucha","#4C3D30",{En:"Mirucha",Zh:"海松茶"}); Hb.Add("Nataneyu-iro","#A17917",{En:"Nataneyu-iro",Zh:"菜種油色"}); Hb.Add("Kimirucha","#896C39",{En:"Kimirucha",Zh:"黄海松茶"}); Hb.Add("Uguisucha","#5C4827",{En:"Uguisucha",Zh:"鶯茶"}); Hb.Add("Nanohanacha","#E3B130",{En:"Nanohanacha",Zh:"菜の花色"}); Hb.Add("Kariyasu","#E2B13C",{En:"Kariyasu",Zh:"苅安"}); Hb.Add("Kihada","#F3C13A",{En:"Kihada",Zh:"黄蘗"}); Hb.Add("Mushikuri-iro","#D3B17D",{En:"Mushikuri-iro",Zh:"蒸栗色"}); Hb.Add("Aokuchiba","#AA8736",{En:"Aokuchiba",Zh:"青朽葉"}); Hb.Add("Hiwacha","#957B38",{En:"Hiwacha",Zh:"鶸茶"}); Hb.Add("Ominaeshi","#D9B611",{En:"Ominaeshi",Zh:"女郎花"}); Hb.Add("Uguisu-iro","#645530",{En:"Uguisu-iro",Zh:"鶯色"});
varsIdentifier="JpYellow"; fShowAnchorNav(sIdentifier,"Jp黄",Ar);
fDisplay(Hb,sIdentifier,Ar); Ar.push("<hr/>"); Hb=null; returnAr.join(""); }//endfunctionfJpYellow functionfJpYellowGreen() { varAr=[]; varHb=newHashTable(); //JpYellowGreen Hb.Add("Hiwa-iro","#BDA928",{En:"Hiwa-iro",Zh:"鶸色"}); Hb.Add("Aoshiroturubami","#BBA46D",{En:"Aoshiroturubami",Zh:"青白橡"}); Hb.Add("Yanagicha","#9C8A4D",{En:"Yanagicha",Zh:"柳茶"}); Hb.Add("Rikancha","#534A32",{En:"Rikancha",Zh:"璃寛茶"}); Hb.Add("Aikobicha","#473F2D",{En:"Aikobicha",Zh:"藍媚茶"}); Hb.Add("Koke-iro","#8B7D3A",{En:"Koke-iro",Zh:"苔色"}); Hb.Add("Miru-iro","#524B2A",{En:"Miru-iro",Zh:"海松色"}); Hb.Add("Sensaicha","#3B3429",{En:"Sensaicha",Zh:"千歳茶"}); Hb.Add("Baikōcha","#857C55",{En:"Baikōcha",Zh:"梅幸茶"}); Hb.Add("Iwaicha","#5E5545",{En:"Iwaicha",Zh:"岩井茶"}); Hb.Add("Hiwamoegi","#7A942E",{En:"Hiwamoegi",Zh:"鶸萌黄"}); Hb.Add("Yanagisusutake","#4D4B3A",{En:"Yanagisusutake",Zh:"柳煤竹"}); Hb.Add("Urayanagi","#BCB58C",{En:"Urayanagi",Zh:"裏柳"}); Hb.Add("Usumoegi","#8DB255",{En:"Usumoegi",Zh:"淡萌黄"}); Hb.Add("Yanagizome","#8C9E5E",{En:"Yanagizome",Zh:"柳染"}); Hb.Add("Moegi","#5B8930",{En:"Moegi",Zh:"萌黄"}); Hb.Add("Aoni","#52593B",{En:"Aoni",Zh:"青丹"}); Hb.Add("Matsuba-iro","#454D32",{En:"Matsuba-iro",Zh:"松葉色"});
varsIdentifier="JpYellowGreen"; fShowAnchorNav(sIdentifier,"Jp黄绿",Ar);
fDisplay(Hb,sIdentifier,Ar); Ar.push("<hr/>"); Hb=null; returnAr.join(""); }//endfunctionfJpYellowGreen functionfJpGreen() { varAr=[]; varHb=newHashTable(); //JpGreen Hb.Add("Usuao","#8C9C76",{En:"Usuao",Zh:"薄青"}); Hb.Add("Wakatake-iro","#6B9362",{En:"Wakatake-iro",Zh:"若竹色"}); Hb.Add("Yanaginezumi","#817B69",{En:"Yanaginezumi",Zh:"柳鼠"}); Hb.Add("Oitake-iro","#5E644F",{En:"Oitake-iro",Zh:"老竹色"}); Hb.Add("Sensaimidori","#374231",{En:"Sensaimidori",Zh:"千歳緑"}); Hb.Add("Midori","#2A603B",{En:"Midori",Zh:"緑"}); Hb.Add("Byakuroku","#A5BA93",{En:"Byakuroku",Zh:"白緑"}); Hb.Add("Sabiseiji","#898A74",{En:"Sabiseiji",Zh:"錆青磁"}); Hb.Add("Rokushō","#407A52",{En:"Rokushō",Zh:"緑青"}); Hb.Add("Tokusa-iro","#3D5D42",{En:"Tokusa-iro",Zh:"木賊色"}); Hb.Add("Onandocha","#3D4035",{En:"Onandocha",Zh:"御納戸茶"}); Hb.Add("Aotake-iro","#006442",{En:"Aotake-iro",Zh:"青竹色"}); Hb.Add("Rikyūnezumi","#656255",{En:"Rikyūnezumi",Zh:"利休鼠"}); Hb.Add("Birōdo","#224634",{En:"Birōdo",Zh:"びろうど"}); Hb.Add("Mushiao","#2D4436",{En:"Mushiao",Zh:"虫襖"}); Hb.Add("Aimirucha","#2E372E",{En:"Aimirucha",Zh:"藍海松茶"}); Hb.Add("Tonocha","#5A6457",{En:"Tonocha",Zh:"沈香茶"}); Hb.Add("Mizuasagi","#749F8D",{En:"Mizuasagi",Zh:"水浅葱"}); Hb.Add("Seiji-iro","#819C8B",{En:"Seiji-iro",Zh:"青磁色"}); Hb.Add("Seiheki","#3A6960",{En:"Seiheki",Zh:"青碧"}); Hb.Add("Sabitetsuonando","#3A403B",{En:"Sabitetsuonando",Zh:"錆鉄御納戸"}); Hb.Add("Tetsu-iro","#2B3733",{En:"Tetsu-iro",Zh:"鉄色"}); Hb.Add("Omeshicha","#354E4B",{En:"Omeshicha",Zh:"御召茶"}); Hb.Add("Kōrainando","#203838",{En:"Kōrainando",Zh:"高麗納戸"});
varsIdentifier="JpGreen"; fShowAnchorNav(sIdentifier,"Jp绿",Ar);
fDisplay(Hb,sIdentifier,Ar); Ar.push("<hr/>"); Hb=null; returnAr.join(""); }//endfunctionfJpGreen functionfJpBlueViolet() { varAr=[]; varHb=newHashTable(); //JpBlueViolet Hb.Add("Minatonezumi","#757D75",{En:"Minatonezumi",Zh:"湊鼠"}); Hb.Add("Aonibi","#4F4944",{En:"Aonibi",Zh:"青鈍"}); Hb.Add("Testuonando","#2B3736",{En:"Testuonando",Zh:"鉄御納戸"}); Hb.Add("Mizu-iro","#86ABA5",{En:"Mizu-iro",Zh:"水色"}); Hb.Add("Sabiasagi","#6A7F7A",{En:"Sabiasagi",Zh:"錆浅葱"}); Hb.Add("Kamenozoki","#C6C2B6",{En:"Kamenozoki",Zh:"瓶覗"}); Hb.Add("Asagi-iro","#48929B",{En:"Asagi-iro",Zh:"浅葱色"}); Hb.Add("Shinbashi-iro","#006C7F",{En:"Shinbashi-iro",Zh:"新橋色"}); Hb.Add("Sabionando","#455859",{En:"Sabionando",Zh:"錆御納戸"}); Hb.Add("Ainezumi","#5C544E",{En:"Ainezumi",Zh:"藍鼠"}); Hb.Add("Ai-iro","#264348",{En:"Ai-iro",Zh:"藍色"}); Hb.Add("Onando-iro","#364141",{En:"Onando-iro",Zh:"御納戸色"}); Hb.Add("Hana'asagi","#1D697C",{En:"Hana'asagi",Zh:"花浅葱"}); Hb.Add("Chigusa-iro","#317589",{En:"Chigusa-iro",Zh:"千草色"}); Hb.Add("Masuhana-iro","#4D646C",{En:"Masuhana-iro",Zh:"舛花色"}); Hb.Add("Hanada","#044F67",{En:"Hanada",Zh:"縹"}); Hb.Add("Noshimehana-iro","#344D56",{En:"Noshimehana-iro",Zh:"熨斗目花色"}); Hb.Add("Omeshionando","#3D4C51",{En:"Omeshionando",Zh:"御召御納戸"}); Hb.Add("Sora-iro","#4D8FAC",{En:"Sora-iro",Zh:"空色"}); Hb.Add("Kurotsurubami","#252321",{En:"Kurotsurubami",Zh:"黒橡"}); Hb.Add("Gunjō-iro","#5D8CAE",{En:"Gunjō-iro",Zh:"群青色"}); Hb.Add("Kon","#192236",{En:"Kon",Zh:"紺"}); Hb.Add("Kachi-iro","#181B26",{En:"Kachi-iro",Zh:"褐色"}); Hb.Add("Ruri-iro","#1F4788",{En:"Ruri-iro",Zh:"瑠璃色"}); Hb.Add("Konjō-iro","#003171",{En:"Konjō-iro",Zh:"紺青色"}); Hb.Add("Rurikon","#1B294B",{En:"Rurikon",Zh:"瑠璃紺"}); Hb.Add("Benimidori","#78779B",{En:"Benimidori",Zh:"紅碧"}); Hb.Add("Konkikyō","#191F45",{En:"Konkikyō",Zh:"紺桔梗"}); Hb.Add("Fujinezumi","#766980",{En:"Fujinezumi",Zh:"藤鼠"}); Hb.Add("Benikakehana-iro","#5A4F74",{En:"Benikakehana-iro",Zh:"紅掛花色"}); Hb.Add("Fuji-iro","#89729E",{En:"Fuji-iro",Zh:"藤色"}); Hb.Add("Futaai","#614E6E",{En:"Futaai",Zh:"二藍"});
varsIdentifier="JpBlueViolet"; fShowAnchorNav(sIdentifier,"Jp蓝紫",Ar);
fDisplay(Hb,sIdentifier,Ar); Ar.push("<hr/>"); Hb=null; returnAr.join(""); }//endfunctionfJpBlueViolet functionfJpViolet() { varAr=[]; varHb=newHashTable(); //JpViolet Hb.Add("Fujimurasaki","#875F9A",{En:"Fujimurasaki",Zh:"藤紫"}); Hb.Add("Kikyō-iro","#5D3F6A",{En:"Kikyō-iro",Zh:"桔梗色"}); Hb.Add("Shion-iro","#976E9A",{En:"Shion-iro",Zh:"紫苑色"}); Hb.Add("Metsushi","#3F313A",{En:"Metsushi",Zh:"滅紫"}); Hb.Add("Shikon","#2B2028",{En:"Shikon",Zh:"紫紺"}); Hb.Add("Kokimurasaki","#3A243B",{En:"Kokimurasaki",Zh:"深紫"}); Hb.Add("Usu-iro","#A87CA0",{En:"Usu-iro",Zh:"薄色"}); Hb.Add("Hashita-iro","#8D608C",{En:"Hashita-iro",Zh:"半色"}); Hb.Add("Sumire-iro","#5B3256",{En:"Sumire-iro",Zh:"菫色"}); Hb.Add("Murasaki","#4F284B",{En:"Murasaki",Zh:"紫"}); Hb.Add("Kurobeni","#23191E",{En:"Kurobeni",Zh:"黒紅"}); Hb.Add("Ayame-iro","#763568",{En:"Ayame-iro",Zh:"菖蒲色"}); Hb.Add("Benifuji","#BB7796",{En:"Benifuji",Zh:"紅藤"}); Hb.Add("Kakitsubata","#491E3C",{En:"Kakitsubata",Zh:"杜若"}); Hb.Add("Hatobanezumi","#755D5B",{En:"Hatobanezumi",Zh:"鳩羽鼠"}); Hb.Add("Budōnezumi","#63424B",{En:"Budōnezumi",Zh:"葡萄鼠"}); Hb.Add("Ebizome","#6D2B50",{En:"Ebizome",Zh:"蒲萄"}); Hb.Add("Fujisusutake","#4D3B3C",{En:"Fujisusutake",Zh:"藤煤竹"}); Hb.Add("Bōtan","#A4345D",{En:"Bōtan",Zh:"牡丹"}); Hb.Add("Umemurasaki","#8F4155",{En:"Umemurasaki",Zh:"梅紫"}); Hb.Add("Nisemurasaki","#43242A",{En:"Nisemurasaki",Zh:"似せ紫"}); Hb.Add("Murasakitobi","#512C31",{En:"Murasakitobi",Zh:"紫鳶"}); Hb.Add("Suō","#7E2639",{En:"Suō",Zh:"蘇芳"}); Hb.Add("Kuwazome","#59292C",{En:"Kuwazome",Zh:"桑染"}); Hb.Add("Benikeshinezumi","#44312E",{En:"Benikeshinezumi",Zh:"紅消鼠"});
varsIdentifier="JpViolet"; fShowAnchorNav(sIdentifier,"Jp紫",Ar);
fDisplay(Hb,sIdentifier,Ar); Ar.push("<hr/>"); Hb=null; returnAr.join(""); }//endfunctionfJpViolet functionfJpAchromatic() { varAr=[]; varHb=newHashTable(); //JpAchromatic Hb.Add("Shironeri","#FFDDCA",{En:"Shironeri",Zh:"白練"}); Hb.Add("Shironezumi","#B9A193",{En:"Shironezumi",Zh:"白鼠"}); Hb.Add("Ginnezumi","#97867C",{En:"Ginnezumi",Zh:"銀鼠"}); Hb.Add("Sunezumi","#6E5F57",{En:"Sunezumi",Zh:"素鼠"}); Hb.Add("Dobunezumi","#4B3C39",{En:"Dobunezumi",Zh:"丼鼠"}); Hb.Add("Aisumicha","#393432",{En:"Aisumicha",Zh:"藍墨茶"}); Hb.Add("Binrōjizome","#352925",{En:"Binrōjizome",Zh:"檳榔子染"}); Hb.Add("Sumi-iro","#27221F",{En:"Sumi-iro",Zh:"墨色"}); Hb.Add("Kuro-iro","#171412",{En:"Kuro-iro",Zh:"黒色"});
varsIdentifier="JpAchromatic"; fShowAnchorNav(sIdentifier,"Jp减",Ar);
fDisplay(Hb,sIdentifier,Ar); Ar.push("<hr/>"); Hb=null; returnAr.join(""); }//endfunctionfJpAchromatic functionfAppendStyle() { varAr=[]; Ar.push("#BgColorSchemeId*a/n"); Ar.push("{/n"); Ar.push("text-decoration:none;/n"); Ar.push("}/n"); Ar.push("/n"); Ar.push(".BcsCbxListClassName/n"); Ar.push("{/n"); Ar.push("margin:0px1px;/n"); Ar.push("}/n"); Ar.push("/n"); Ar.push(".BcsTextClassNamespandiv/n"); Ar.push("{/n"); Ar.push("padding:2px5px;/n"); Ar.push("}/n"); Ar.push("/n"); Ar.push(".BcsTextClassNamespandivdiv/n"); Ar.push("{/n"); Ar.push("padding:10px0px;/n"); Ar.push("}/n"); returnAr.join(""); }//endfunctionfAppendStyle functionfAddStyleFromStr(sIpt,sId) {//shawl.qiuscript varEleStyle=document.createElement("style"); EleStyle.type="text/css"; if(sId&&sId!="") { EleStyle.id=sId; } if(fCkBrs()==1) { EleStyle.styleSheet.cssText=sIpt; } else { EleStyle.innerHTML=sIpt; } functionfCkBrs() { switch(navigator.appName) { case'Opera':return2; case'Netscape':return3; default:return1; } }//endfunctionfCkBrs varEleHead=document.getElementsByTagName("head")[0] if(!EleHead)EleHead=document.body; EleHead.insertBefore(EleStyle,EleHead.firstChild); }//endfunctionfAddStyleFromStr functionfDisplayTheme1(ColorAr,HbItem,sMsg,sHbAnchor,Ar) { if(!sMsg) { sMsg=""; } if(sMsg!="") { sMsg="<pstyle='margin:5px0px;'>"+sMsg+"</p>"; } varsTop=""; varsTopAr=[]; sTopAr.push("<divstyle='float:right'>"); sTopAr.push("<ahref='#"+sHbAnchor+"'>Current</a>"); sTopAr.push("|"); sTopAr.push("<ahref='#"+Tl.Init.Name+"'>Top</a>"); sTopAr.push("</div>"); sTop=sTopAr.join(""); varsColor="#000000";
Ar.push("<divstyle='margin:10px0px;background-color:"+HbItem+";color:"+ColorAr[i]+";'>"); Ar.push(""); Ar.push(sTop); for(vari=0,j=ColorAr.length;i<j;i++) { Ar.push("<divstyle='color:"+ColorAr[i]+";'>"); Ar.push("Bg:<inputtype='text'value='"+HbItem); Ar.push("'style='background-color:"+HbItem+";color:"+ColorAr[i]); Ar.push(";border:0px;'onmousemove='this.focus();this.select();'"); Ar.push("onmouseout='this.blur()'/><br>"); Ar.push("Fg:<inputtype='text'value='"+ColorAr[i]); Ar.push("'style='background-color:"+HbItem+";color:"+ColorAr[i]); Ar.push(";border:0px;'onmousemove='this.focus();this.select();'"); Ar.push("onmouseout='this.blur()'/><br>"); Ar.push("Key:"+HbItem.Key+"<br>"); Ar.push("Zh:"+HbItem.Zh+"<br>"); Ar.push(sMsg); Ar.push("</div>"); }//endfor Ar.push("</div>"); }//endfunctionfDisplayColorScheme functionfDisplayTheme1Invert(Hb,ColorItem,sMsg,sHbAnchor,Ar) { varsResult=""; if(!sMsg) { sMsg=""; } if(sMsg!="") { sMsg="<pstyle='margin:5px0px;'>"+sMsg+"</p>"; }
Ar.push("<divstyle='margin:10px0px;background-color:"+ColorItem+";'>"); varsTop=""; varsTopAr=[]; sTopAr.push("<divstyle='float:right'>"); sTopAr.push("<ahref='#"+sHbAnchor+"'>Current</a>"); sTopAr.push("|"); sTopAr.push("<ahref='#"+Tl.Init.Name+"'>Top</a>"); sTopAr.push("</div>"); sTop=sTopAr.join(""); Ar.push(sTop); vari=0; for(varkinHb.Object) { varItem=Hb.Item(k); Ar.push("<divstyle='color:"+Item+";'>"); Ar.push("Bg:<inputtype='text'value='"+ColorItem); Ar.push("'style='background-color:"+ColorItem+";color:"+Item); Ar.push(";border:0px;'onmousemove='this.focus();this.select();'"); Ar.push("onmouseout='this.blur()'/><br>"); Ar.push("Fg:<inputtype='text'value='"+Item); Ar.push("'style='background-color:"+ColorItem+";color:"+Item); Ar.push(";border:0px;'onmousemove='this.focus();this.select();'"); Ar.push("onmouseout='this.blur()'/><br>"); Ar.push("Key:"+Item.Key+"<br>"); Ar.push("Zh:"+Item.Zh+"<br>"); Ar.push(sMsg); Ar.push("</div>"); i++; }//endfor Ar.push("</div>"); }//endfunctionfDisplayColorScheme1 functionfDisplaySplit(ColorAr,HbItem,sMsg,bInvert,sHbAnchor,Ar) { if(!sMsg) { sMsg=""; } if(sMsg!="") { sMsg="<pstyle='margin:5px0px;'>"+sMsg+"</p>"; } varsTop=""; varsTopAr=[]; sTopAr.push("<divstyle='float:right;margin:0px;padding:0px;'>"); sTopAr.push("<ahref='#"+sHbAnchor+"'>Current</a>"); sTopAr.push("|"); sTopAr.push("<ahref='#"+Tl.Init.Name+"'>Top</a>"); sTopAr.push("</div>"); sTop=sTopAr.join(""); if(bInvert) { for(vari=0,j=ColorAr.length;i<j;i++) { Ar.push("<divstyle='margin:10px0px;background-color:"); Ar.push(ColorAr[i]+";color:"+HbItem+";'>"); Ar.push(sTop); Ar.push("Bg:<inputtype='text'value='"+ColorAr[i]); Ar.push("'style='background-color:"+ColorAr[i]+";color:"+HbItem); Ar.push(";border:0px;'onmousemove='this.focus();this.select();'"); Ar.push("onmouseout='this.blur()'/><br>"); Ar.push("Fg:<inputtype='text'value='"+HbItem); Ar.push("'style='background-color:"+ColorAr[i]+";color:"+HbItem); Ar.push(";border:0px;'onmousemove='this.focus();this.select();'"); Ar.push("onmouseout='this.blur()'/><br>"); Ar.push("Key:"+HbItem.Key+"<br/>"); Ar.push("Zh:"+HbItem.Zh+"<br/>"); Ar.push(sMsg); Ar.push("</div>"); }//endfor } else { for(vari=0,j=ColorAr.length;i<j;i++) { Ar.push("<divstyle='margin:10px0px;background-color:"); Ar.push(HbItem+";color:"+ColorAr[i]+";'>"); Ar.push(sTop); Ar.push("Bg:<inputtype='text'value='"+HbItem); Ar.push("'style='background-color:"+HbItem+";color:"+ColorAr[i]); Ar.push(";border:0px;'onmousemove='this.focus();this.select();'"); Ar.push("onmouseout='this.blur()'/><br>"); Ar.push("Fg:<inputtype='text'value='"+ColorAr[i]); Ar.push("'style='background-color:"+HbItem+";color:"+ColorAr[i]); Ar.push(";border:0px;'onmousemove='this.focus();this.select();'"); Ar.push("onmouseout='this.blur()'/><br>"); Ar.push("Key:"+HbItem.Key+"<br>"); Ar.push("Zh:"+HbItem.Zh+"<br>"); Ar.push(sMsg); Ar.push("</div>"); }//endfor Ar.push("</div></div>");; } }//endfunctionfDisplaySplit functionfDisplay(Hb,sHbAnchor,Ar) { switch(Tl.Theme.Default) { case"Split": for(variinHb.Object) { fDisplaySplit(Tl.Color.Set,Hb.Item(i),Tl.Msg,Tl.Invert,sHbAnchor,Ar); } break; default: if(Tl.Invert) { for(vari=0,j=Tl.Color.Set.length;i<j;i++) { fDisplayTheme1Invert(Hb,Tl.Color.Set[i],Tl.Msg,sHbAnchor,Ar); } } else { for(variinHb.Object) { fDisplayTheme1(Tl.Color.Set,Hb.Item(i),Tl.Msg,sHbAnchor,Ar); } }//endif break; } }//endfunctionfDisplay functionfSetPAnchorStr() { varAr=[]; Ar.push("<div>"); Ar.push("<ahref=#"+Tl.Init.Name+">Top</a>"); for(vari=0,j=pCbxList.length;i<j;i++) { if(pCbxList[i].checked) { Ar.push("|<ahref='#"+pCbxList[i].value+"'>"); Ar.push(Tl.ContainerHb.Item(pCbxList[i].value)); Ar.push("</a>"); } }//endfor
Ar.push("</div>"); pAnchorStr=Ar.join(""); }//endfunctionfSetPAnchorStr; functionfPutAnchorStr() { //Tl.Init.Name+"White"+Tl.Element.Anchor.Id+Tl.Postfix for(vari=0,j=pCbxList.length;i<j;i++) { varsId=Tl.Init.Name+pCbxList[i].value+Tl.Element.Anchor.Id+Tl.Postfix; varoDiv=document.getElementById(sId); if(pCbxList[i].checked) { oDiv.innerHTML=pAnchorStr; } else { if(oDiv!=null) { oDiv.innerHTML=""; } } }//endfor }//endfunctionfPutAnchorStr functionfSetNullContainerHbContent() { for(variinTl.ContainerHb.Object) { Tl.ContainerHb.Item(i).Content=null; } }//endfunctionfSetNullContainerHbContent functionfShowAnchorNav(sIdentifier,sShadeName,Ar) { Ar.push("<h2><aname='"+sIdentifier+"'>"+sShadeName+"</a></h2>"); Ar.push("<spanid='"+Tl.Init.Name+sIdentifier+Tl.Element.Anchor.Id+Tl.Postfix+"'>"); Ar.push(pAnchorStr); Ar.push("</span>"); }//endfunctionfShowAnchorNavrunat="Server" //------------------------------------endprivatemethod }//shawl.qiucode //---------------------------------endclassBgColorScheme()---------------------------------//
3. HashTable.js
见:/btbtd/archive//07/01/1672991.aspx