/*** Color Picker Object ***/ var arrColorPickerObjects=[]; function ColorPicker(sName,sParent) { this.oParent=sParent; if(sParent) { this.oName=sParent+"."+sName; this.oRenderName=sName+sParent; } else { this.oName=sName; this.oRenderName=sName; } arrColorPickerObjects.push(this.oName); this.url="color_picker.htm"; this.onShow=function(){return true;}; this.onHide=function(){return true;}; this.onPickColor=function(){return true;}; this.onRemoveColor=function(){return true;}; this.onMoreColor=function(){return true;}; this.show=showColorPicker; this.hide=hideColorPicker; this.hideAll=hideColorPickerAll; this.color; this.customColors=[]; this.refreshCustomColor=refreshCustomColor; this.isActive=false; this.txtCustomColors="Custom Colors"; this.txtMoreColors="More Colors..."; this.align="left"; this.currColor="#ffffff";//default current color this.RENDER=drawColorPicker; } function drawColorPicker() { var arrColors=[["#800000","#8b4513","#006400","#2f4f4f","#000080","#4b0082","#800080","#000000"], ["#ff0000","#daa520","#6b8e23","#708090","#0000cd","#483d8b","#c71585","#696969"], ["#ff4500","#ffa500","#808000","#4682b4","#1e90ff","#9400d3","#ff1493","#a9a9a9"], ["#ff6347","#ffd700","#32cd32","#87ceeb","#00bfff","#9370db","#ff69b4","#dcdcdc"], ["#ffdab9","#ffffe0","#98fb98","#e0ffff","#87cefa","#e6e6fa","#dda0dd","#ffffff"]] var sHTMLColor=""; sHTMLColor+=""; } //~~~ custom colors ~~~~ sHTMLColor+=""; //~~~ remove color & more colors ~~~~ sHTMLColor+= ""; sHTMLColor+= ""; sHTMLColor+= ""; sHTMLColor+= ""; sHTMLColor+= ""; sHTMLColor+=""; document.write(sHTMLColor); } function refreshCustomColor() { var arg = eval(dialogArgument[0]); var arg2 = eval(dialogArgument[1]); if(arg.oUtil)//[CUSTOM] this.customColors=arg.oUtil.obj.customColors;//[CUSTOM] (Get from public definition) else //text2.htm [CUSTOM] this.customColors=arg2.oUtil.obj.customColors;//[CUSTOM] (Get from public definition) if(this.customColors.length==0) { document.getElementById("idCustomColor"+this.oRenderName).innerHTML=""; return; } sHTML="
"+this.txtCustomColors+":
" sHTML+=""; for(var i=0;i
" sHTML+=""; } } sHTML+="
"+ " "+ " "+ "
"+ "
"; document.getElementById("idCustomColor"+this.oRenderName).innerHTML=sHTML; } function showColorPicker(oEl) { this.onShow(); this.hideAll(); var box=document.getElementById("dropColor"+this.oRenderName); //remove hilite var allTds = box.getElementsByTagName("TD"); for (var i = 0; i
AutoFit Properties Style