BVB Source Codes

Pcook CMS bubble guest v3.0 SDCMS version Show selcolor.htm Source code

Return Download Pcook CMS bubble guest v3.0 SDCMS version: download selcolor.htm Source code - Download Pcook CMS bubble guest v3.0 SDCMS version Source code - Type:.htm
  1. <HTML>
  2. <HEAD>
  3. <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
  4. <script language=javascript src="dialog.js"></script>
  5. <link href='dialog.css' type='text/css' rel='stylesheet'>
  6.  
  7. <script language=javascript>
  8.  
  9. var sAction = URLParams['action'] ;
  10. var sTitle = "";
  11. var color = "" ;
  12. var oSelection;
  13. var oControl;
  14. var sRangeType;
  15.  
  16. switch (sAction) {
  17.         case "forecolor":
  18.                 sTitle = "字体前景色";
  19.                 oSelection = dialogArguments.eWebEditor.document.selection.createRange();
  20.                 color = oSelection.queryCommandValue("ForeColor");
  21.                 if (color) color = N2Color(color);
  22.                 break;
  23.         case "backcolor":
  24.                 sTitle = "字体背景色";
  25.                 oSelection = dialogArguments.eWebEditor.document.selection.createRange();
  26.                 color = oSelection.queryCommandValue("BackColor");
  27.                 if (color) color = N2Color(color);
  28.                 break;
  29.         case "bgcolor":
  30.                 sTitle = "对象背景色";
  31.                 oSelection = dialogArguments.eWebEditor.document.selection.createRange();
  32.                 sRangeType = dialogArguments.eWebEditor.document.selection.type;
  33.                 if (sRangeType == "Control") {
  34.                         oControl = GetControl(oSelection, "TABLE");
  35.                 }else{
  36.                         oControl = GetParent(oSelection.parentElement());
  37.                 }
  38.                 if (oControl) {
  39.                         switch(oControl.tagName){
  40.                         case "TD":
  41.                                 sTitle += " - 单元格";
  42.                                 break;
  43.                         case "TR":
  44.                         case "TH":
  45.                                 sTitle += " - 表格行";
  46.                                 break;
  47.                         default:
  48.                                 sTitle += " - 表格";
  49.                                 break;
  50.                         }
  51.                         color = oControl.bgColor;
  52.                 }else{
  53.                         sTitle += " - 网页";
  54.                 }
  55.                 break;
  56.         default:
  57.                 if (URLParams['color']){
  58.                         color = decodeURIComponent(URLParams['color']) ;
  59.                 }
  60.                 break;
  61. }
  62.  
  63. document.write("<TITLE>颜色选择(" + sTitle + ")</TITLE>");
  64.  
  65. if (!color) color = "#000000";
  66.  
  67.  
  68. function GetParent(obj){
  69.         while(obj!=null && obj.tagName!="TD" && obj.tagName!="TR" && obj.tagName!="TH" && obj.tagName!="TABLE")
  70.                 obj=obj.parentElement;
  71.         return obj;
  72. }
  73.  
  74. function GetControl(obj, sTag){
  75.         obj=obj.item(0);
  76.         if (obj.tagName==sTag){
  77.                 return obj;
  78.         }
  79.         return null;
  80. }
  81.  
  82. function N2Color(s_Color){
  83.         s_Color = s_Color.toString(16);
  84.         switch (s_Color.length) {
  85.         case 1:
  86.                 s_Color = "0" + s_Color + "0000";
  87.                 break;
  88.         case 2:
  89.                 s_Color = s_Color + "0000";
  90.                 break;
  91.         case 3:
  92.                 s_Color = s_Color.substring(1,3) + "0" + s_Color.substring(0,1) + "00" ;
  93.                 break;
  94.         case 4:
  95.                 s_Color = s_Color.substring(2,4) + s_Color.substring(0,2) + "00" ;
  96.                 break;
  97.         case 5:
  98.                 s_Color = s_Color.substring(3,5) + s_Color.substring(1,3) + "0" + s_Color.substring(0,1) ;
  99.                 break;
  100.         case 6:
  101.                 s_Color = s_Color.substring(4,6) + s_Color.substring(2,4) + s_Color.substring(0,2) ;
  102.                 break;
  103.         default:
  104.                 s_Color = "";
  105.         }
  106.         return '#' + s_Color;
  107. }
  108.  
  109. function InitDocument(){
  110.         ShowColor.bgColor = color;
  111.         RGB.innerHTML = color;
  112.         SelColor.value = color;
  113.  
  114.         var s_BoxID = "cbox_" + color.substr(1);
  115.         var o_Box = document.all(s_BoxID);
  116.         if (o_Box){
  117.                 BoxClick(o_Box);
  118.         }
  119.  
  120.         adjustDialog();
  121. }
  122.  
  123.  
  124. var SelRGB = color;
  125. var DrRGB = '';
  126. var SelGRAY = '120';
  127.  
  128. var hexch = new Array('0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F');
  129.  
  130. function ToHex(n) {    
  131.         var h, l;
  132.  
  133.         n = Math.round(n);
  134.         l = n % 16;
  135.         h = Math.floor((n / 16)) % 16;
  136.         return (hexch[h] + hexch[l]);
  137. }
  138.  
  139. function DoColor(c, l){
  140.         var r, g, b;
  141.  
  142.         r = '0x' + c.substring(1, 3);
  143.         g = '0x' + c.substring(3, 5);
  144.         b = '0x' + c.substring(5, 7);
  145.  
  146.         if(l > 120){
  147.                 l = l - 120;
  148.  
  149.                 r = (r * (120 - l) + 255 * l) / 120;
  150.                 g = (g * (120 - l) + 255 * l) / 120;
  151.                 b = (b * (120 - l) + 255 * l) / 120;
  152.         }else{
  153.                 r = (r * l) / 120;
  154.                 g = (g * l) / 120;
  155.                 b = (b * l) / 120;
  156.         }
  157.  
  158.         return '#' + ToHex(r) + ToHex(g) + ToHex(b);
  159. }
  160.  
  161. function EndColor(){
  162.         var i;
  163.  
  164.         if(DrRGB != SelRGB){
  165.                 DrRGB = SelRGB;
  166.                 for(i = 0; i <= 30; i ++)
  167.                 GrayTable.rows(i).bgColor = DoColor(SelRGB, 240 - i * 8);
  168.         }
  169.  
  170.         var s_Color = DoColor(RGB.innerText, GRAY.innerText);
  171.         SelColor.value = s_Color
  172.         ShowColor.bgColor = s_Color;
  173.  
  174.         var s_BoxID = "cbox_" + s_Color.substr(1);
  175.         var o_Box = document.all(s_BoxID);
  176.         if (o_Box){
  177.                 BoxClick(o_Box, true);
  178.         }else{
  179.                 if (s_CurrBoxID){
  180.                         document.all(s_CurrBoxID).className = "boxNormal";
  181.                         s_CurrBoxID = ""
  182.                 }
  183.         }
  184.  
  185. }
  186.  
  187. var s_CurrBoxID = "";
  188. function BoxMouseOut(obj){
  189.         if (obj.id==s_CurrBoxID){
  190.                 obj.className = "boxSelected";
  191.         }else{
  192.                 obj.className = "boxNormal";
  193.         }
  194. }
  195.  
  196. function BoxMouseOver(obj){
  197.         if (obj.id==s_CurrBoxID){
  198.                 obj.className = "boxSelected";
  199.         }else{
  200.                 obj.className = "boxOver";
  201.         }
  202. }
  203.  
  204. function BoxClick(obj, notSel){
  205.         if (obj.id==s_CurrBoxID){
  206.                 return;
  207.         }else{
  208.                 if (s_CurrBoxID){
  209.                         document.all(s_CurrBoxID).className = "boxNormal";
  210.                 }
  211.  
  212.                 s_CurrBoxID = obj.id;
  213.                 obj.className = "boxSelected";
  214.  
  215.                 var s_Color = "#" + s_CurrBoxID.substr(5);
  216.                 if (!notSel){
  217.                         SelRGB = s_Color;
  218.                 }              
  219.                 SelColor.value = s_Color;
  220.                 ShowColor.bgColor = SelColor.value;
  221.  
  222.         }
  223. }
  224.  
  225. </SCRIPT>
  226.  
  227. <SCRIPT event=onclick for=ColorTable language=JavaScript>
  228.         SelRGB = event.srcElement.bgColor;
  229.         EndColor();
  230. </SCRIPT>
  231.  
  232. <SCRIPT event=onmouseover for=ColorTable language=JavaScript>
  233.         RGB.innerText = event.srcElement.bgColor;
  234.         EndColor();
  235. </SCRIPT>
  236.  
  237. <SCRIPT event=onmouseout for=ColorTable language=JavaScript>
  238.         RGB.innerText = SelRGB;
  239.         EndColor();
  240. </SCRIPT>
  241.  
  242. <SCRIPT event=onclick for=GrayTable language=JavaScript>
  243.         SelGRAY = event.srcElement.title;
  244.         EndColor();
  245. </SCRIPT>
  246.  
  247. <SCRIPT event=onmouseover for=GrayTable language=JavaScript>
  248.         GRAY.innerText = event.srcElement.title;
  249.         EndColor();
  250. </SCRIPT>
  251.  
  252. <SCRIPT event=onmouseout for=GrayTable language=JavaScript>
  253.         GRAY.innerText = SelGRAY;
  254.         EndColor();
  255. </SCRIPT>
  256.  
  257. <SCRIPT event=onclick for=Ok language=JavaScript>
  258.         color = SelColor.value;
  259.         if (!IsColor(color)){
  260.                 alert("无效的颜色值!");
  261.                 return;
  262.         }
  263.  
  264.         switch (sAction) {
  265.                 case "forecolor":
  266.                         dialogArguments.format('ForeColor', color) ;
  267.                         window.returnValue = null;
  268.                         break;
  269.                 case "backcolor":
  270.                         dialogArguments.format('BackColor', color) ;
  271.                         window.returnValue = null;
  272.                         break;
  273.                 case "bgcolor":
  274.                         if (oControl){
  275.                                 oControl.bgColor = color;
  276.                         }else{
  277.                                 dialogArguments.setHTML("<table border=0 cellpadding=0 cellspacing=0 width='100%' height='100%'><tr><td valign=top bgcolor='"+color+"'>"+dialogArguments.getHTML()+"</td></tr></table>", true);
  278.                         }
  279.                         window.returnValue = null;
  280.                         break;
  281.                 default:
  282.                         window.returnValue = color;
  283.                         break;
  284.         }
  285.         window.close();
  286. </SCRIPT>
  287.  
  288. <style>
  289. .boxNormal {border:1px solid #d4d0c8}
  290. .boxOver {border-width:1px;border-color:#ffffff #000000 #000000 #ffffff;border-style:solid}
  291. .boxSelected {border-width:1px;border-color:#000000 #ffffff #ffffff #000000;border-style:inset}
  292.  
  293. </style>
  294.  
  295. </HEAD>
  296.  
  297. <BODY onload="InitDocument()">
  298. <table border=0 cellpadding=0 cellspacing=5 id=tabDialogSize><tr><td>
  299.  
  300. <table border=0 cellpadding=0 cellspacing=0 align=center>
  301. <tr valign=top>
  302. <td>
  303.         <table border=0 cellpadding=0 cellspacing=10><tr><td>
  304.         <table id= border=0 cellpadding=3 cellspacing=0>
  305.         <tr>
  306.                 <td id="cbox_000000" onmouseover="BoxMouseOver(this)" onmouseout="BoxMouseOut(this)" onclick="BoxClick(this)" class="boxNormal"><img src="../sysimage/space.gif" width=16 height=16 style="border:1px solid gray;background-color:#000000"></td>
  307.                 <td id="cbox_993300" onmouseover="BoxMouseOver(this)" onmouseout="BoxMouseOut(this)" onclick="BoxClick(this)" class="boxNormal"><img src="../sysimage/space.gif" width=16 height=16 style="border:1px solid gray;background-color:#993300"></td>
  308.                 <td id="cbox_333300" onmouseover="BoxMouseOver(this)" onmouseout="BoxMouseOut(this)" onclick="BoxClick(this)" class="boxNormal"><img src="../sysimage/space.gif" width=16 height=16 style="border:1px solid gray;background-color:#333300"></td>
  309.                 <td id="cbox_003300" onmouseover="BoxMouseOver(this)" onmouseout="BoxMouseOut(this)" onclick="BoxClick(this)" class="boxNormal"><img src="../sysimage/space.gif" width=16 height=16 style="border:1px solid gray;background-color:#003300"></td>
  310.                 <td id="cbox_003366" onmouseover="BoxMouseOver(this)" onmouseout="BoxMouseOut(this)" onclick="BoxClick(this)" class="boxNormal"><img src="../sysimage/space.gif" width=16 height=16 style="border:1px solid gray;background-color:#003366"></td>
  311.         </tr>
  312.         <tr>
  313.                 <td id="cbox_000080" onmouseover="BoxMouseOver(this)" onmouseout="BoxMouseOut(this)" onclick="BoxClick(this)" class="boxNormal"><img src="../sysimage/space.gif" width=16 height=16 style="border:1px solid gray;background-color:#000080"></td>
  314.                 <td id="cbox_333399" onmouseover="BoxMouseOver(this)" onmouseout="BoxMouseOut(this)" onclick="BoxClick(this)" class="boxNormal"><img src="../sysimage/space.gif" width=16 height=16 style="border:1px solid gray;background-color:#333399"></td>
  315.                 <td id="cbox_333333" onmouseover="BoxMouseOver(this)" onmouseout="BoxMouseOut(this)" onclick="BoxClick(this)" class="boxNormal"><img src="../sysimage/space.gif" width=16 height=16 style="border:1px solid gray;background-color:#333333"></td>
  316.                 <td id="cbox_800000" onmouseover="BoxMouseOver(this)" onmouseout="BoxMouseOut(this)" onclick="BoxClick(this)" class="boxNormal"><img src="../sysimage/space.gif" width=16 height=16 style="border:1px solid gray;background-color:#800000"></td>
  317.                 <td id="cbox_FF6600" onmouseover="BoxMouseOver(this)" onmouseout="BoxMouseOut(this)" onclick="BoxClick(this)" class="boxNormal"><img src="../sysimage/space.gif" width=16 height=16 style="border:1px solid gray;background-color:#FF6600"></td>
  318.         </tr>
  319.         <tr>
  320.                 <td id="cbox_808000" onmouseover="BoxMouseOver(this)" onmouseout="BoxMouseOut(this)" onclick="BoxClick(this)" class="boxNormal"><img src="../sysimage/space.gif" width=16 height=16 style="border:1px solid gray;background-color:#808000"></td>
  321.                 <td id="cbox_008000" onmouseover="BoxMouseOver(this)" onmouseout="BoxMouseOut(this)" onclick="BoxClick(this)" class="boxNormal"><img src="../sysimage/space.gif" width=16 height=16 style="border:1px solid gray;background-color:#008000"></td>
  322.                 <td id="cbox_008080" onmouseover="BoxMouseOver(this)" onmouseout="BoxMouseOut(this)" onclick="BoxClick(this)" class="boxNormal"><img src="../sysimage/space.gif" width=16 height=16 style="border:1px solid gray;background-color:#008080"></td>
  323.                 <td id="cbox_0000FF" onmouseover="BoxMouseOver(this)" onmouseout="BoxMouseOut(this)" onclick="BoxClick(this)" class="boxNormal"><img src="../sysimage/space.gif" width=16 height=16 style="border:1px solid gray;background-color:#0000FF"></td>
  324.                 <td id="cbox_666699" onmouseover="BoxMouseOver(this)" onmouseout="BoxMouseOut(this)" onclick="BoxClick(this)" class="boxNormal"><img src="../sysimage/space.gif" width=16 height=16 style="border:1px solid gray;background-color:#666699"></td>
  325.         </tr>
  326.         <tr>
  327.                 <td id="cbox_808080" onmouseover="BoxMouseOver(this)" onmouseout="BoxMouseOut(this)" onclick="BoxClick(this)" class="boxNormal"><img src="../sysimage/space.gif" width=16 height=16 style="border:1px solid gray;background-color:#808080"></td>
  328.                 <td id="cbox_FF0000" onmouseover="BoxMouseOver(this)" onmouseout="BoxMouseOut(this)" onclick="BoxClick(this)" class="boxNormal"><img src="../sysimage/space.gif" width=16 height=16 style="border:1px solid gray;background-color:#FF0000"></td>
  329.                 <td id="cbox_FF9900" onmouseover="BoxMouseOver(this)" onmouseout="BoxMouseOut(this)" onclick="BoxClick(this)" class="boxNormal"><img src="../sysimage/space.gif" width=16 height=16 style="border:1px solid gray;background-color:#FF9900"></td>
  330.                 <td id="cbox_99CC00" onmouseover="BoxMouseOver(this)" onmouseout="BoxMouseOut(this)" onclick="BoxClick(this)" class="boxNormal"><img src="../sysimage/space.gif" width=16 height=16 style="border:1px solid gray;background-color:#99CC00"></td>
  331.                 <td id="cbox_339966" onmouseover="BoxMouseOver(this)" onmouseout="BoxMouseOut(this)" onclick="BoxClick(this)" class="boxNormal"><img src="../sysimage/space.gif" width=16 height=16 style="border:1px solid gray;background-color:#339966"></td>
  332.         </tr>
  333.         <tr>
  334.                 <td id="cbox_33CCCC" onmouseover="BoxMouseOver(this)" onmouseout="BoxMouseOut(this)" onclick="BoxClick(this)" class="boxNormal"><img src="../sysimage/space.gif" width=16 height=16 style="border:1px solid gray;background-color:#33CCCC"></td>
  335.                 <td id="cbox_3366FF" onmouseover="BoxMouseOver(this)" onmouseout="BoxMouseOut(this)" onclick="BoxClick(this)" class="boxNormal"><img src="../sysimage/space.gif" width=16 height=16 style="border:1px solid gray;background-color:#3366FF"></td>
  336.                 <td id="cbox_800080" onmouseover="BoxMouseOver(this)" onmouseout="BoxMouseOut(this)" onclick="BoxClick(this)" class="boxNormal"><img src="../sysimage/space.gif" width=16 height=16 style="border:1px solid gray;background-color:#800080"></td>
  337.                 <td id="cbox_999999" onmouseover="BoxMouseOver(this)" onmouseout="BoxMouseOut(this)" onclick="BoxClick(this)" class="boxNormal"><img src="../sysimage/space.gif" width=16 height=16 style="border:1px solid gray;background-color:#999999"></td>
  338.                 <td id="cbox_FF00FF" onmouseover="BoxMouseOver(this)" onmouseout="BoxMouseOut(this)" onclick="BoxClick(this)" class="boxNormal"><img src="../sysimage/space.gif" width=16 height=16 style="border:1px solid gray;background-color:#FF00FF"></td>
  339.         </tr>
  340.         <tr>
  341.                 <td id="cbox_FFCC00" onmouseover="BoxMouseOver(this)" onmouseout="BoxMouseOut(this)" onclick="BoxClick(this)" class="boxNormal"><img src="../sysimage/space.gif" width=16 height=16 style="border:1px solid gray;background-color:#FFCC00"></td>
  342.                 <td id="cbox_FFFF00" onmouseover="BoxMouseOver(this)" onmouseout="BoxMouseOut(this)" onclick="BoxClick(this)" class="boxNormal"><img src="../sysimage/space.gif" width=16 height=16 style="border:1px solid gray;background-color:#FFFF00"></td>
  343.                 <td id="cbox_00FF00" onmouseover="BoxMouseOver(this)" onmouseout="BoxMouseOut(this)" onclick="BoxClick(this)" class="boxNormal"><img src="../sysimage/space.gif" width=16 height=16 style="border:1px solid gray;background-color:#00FF00"></td>
  344.                 <td id="cbox_00FFFF" onmouseover="BoxMouseOver(this)" onmouseout="BoxMouseOut(this)" onclick="BoxClick(this)" class="boxNormal"><img src="../sysimage/space.gif" width=16 height=16 style="border:1px solid gray;background-color:#00FFFF"></td>
  345.                 <td id="cbox_00CCFF" onmouseover="BoxMouseOver(this)" onmouseout="BoxMouseOut(this)" onclick="BoxClick(this)" class="boxNormal"><img src="../sysimage/space.gif" width=16 height=16 style="border:1px solid gray;background-color:#00CCFF"></td>
  346.         </tr>
  347.         <tr>
  348.                 <td id="cbox_993366" onmouseover="BoxMouseOver(this)" onmouseout="BoxMouseOut(this)" onclick="BoxClick(this)" class="boxNormal"><img src="../sysimage/space.gif" width=16 height=16 style="border:1px solid gray;background-color:#993366"></td>
  349.                 <td id="cbox_C0C0C0" onmouseover="BoxMouseOver(this)" onmouseout="BoxMouseOut(this)" onclick="BoxClick(this)" class="boxNormal"><img src="../sysimage/space.gif" width=16 height=16 style="border:1px solid gray;background-color:#C0C0C0"></td>
  350.                 <td id="cbox_FF99CC" onmouseover="BoxMouseOver(this)" onmouseout="BoxMouseOut(this)" onclick="BoxClick(this)" class="boxNormal"><img src="../sysimage/space.gif" width=16 height=16 style="border:1px solid gray;background-color:#FF99CC"></td>
  351.                 <td id="cbox_FFCC99" onmouseover="BoxMouseOver(this)" onmouseout="BoxMouseOut(this)" onclick="BoxClick(this)" class="boxNormal"><img src="../sysimage/space.gif" width=16 height=16 style="border:1px solid gray;background-color:#FFCC99"></td>
  352.                 <td id="cbox_FFFF99" onmouseover="BoxMouseOver(this)" onmouseout="BoxMouseOut(this)" onclick="BoxClick(this)" class="boxNormal"><img src="../sysimage/space.gif" width=16 height=16 style="border:1px solid gray;background-color:#FFFF99"></td>
  353.         </tr>
  354.         <tr>
  355.                 <td id="cbox_CCFFCC" onmouseover="BoxMouseOver(this)" onmouseout="BoxMouseOut(this)" onclick="BoxClick(this)" class="boxNormal"><img src="../sysimage/space.gif" width=16 height=16 style="border:1px solid gray;background-color:#CCFFCC"></td>
  356.                 <td id="cbox_CCFFFF" onmouseover="BoxMouseOver(this)" onmouseout="BoxMouseOut(this)" onclick="BoxClick(this)" class="boxNormal"><img src="../sysimage/space.gif" width=16 height=16 style="border:1px solid gray;background-color:#CCFFFF"></td>
  357.                 <td id="cbox_99CCFF" onmouseover="BoxMouseOver(this)" onmouseout="BoxMouseOut(this)" onclick="BoxClick(this)" class="boxNormal"><img src="../sysimage/space.gif" width=16 height=16 style="border:1px solid gray;background-color:#99CCFF"></td>
  358.                 <td id="cbox_CC99FF" onmouseover="BoxMouseOver(this)" onmouseout="BoxMouseOut(this)" onclick="BoxClick(this)" class="boxNormal"><img src="../sysimage/space.gif" width=16 height=16 style="border:1px solid gray;background-color:#CC99FF"></td>
  359.                 <td id="cbox_FFFFFF" onmouseover="BoxMouseOver(this)" onmouseout="BoxMouseOut(this)" onclick="BoxClick(this)" class="boxNormal"><img src="../sysimage/space.gif" width=16 height=16 style="border:1px solid gray;background-color:#FFFFFF"></td>
  360.         </tr>
  361.         </table>
  362.         </td></tr></table>
  363.  
  364. </td>
  365.  
  366. <td>
  367.  
  368.         <TABLE border=0 cellPadding=0 cellSpacing=10 align=center>
  369.         <TR>
  370.                 <TD>
  371.                 <TABLE border=0 cellPadding=0 cellSpacing=0 id=ColorTable style="CURSOR: hand">
  372.                 <SCRIPT language=JavaScript>
  373.                 function wc(r, g, b, n){
  374.                         r = ((r * 16 + r) * 3 * (15 - n) + 0x80 * n) / 15;
  375.                         g = ((g * 16 + g) * 3 * (15 - n) + 0x80 * n) / 15;
  376.                         b = ((b * 16 + b) * 3 * (15 - n) + 0x80 * n) / 15;
  377.  
  378.                         document.write('<TD BGCOLOR=#' + ToHex(r) + ToHex(g) + ToHex(b) + ' height=8 width=8></TD>');
  379.                 }
  380.  
  381.                 var cnum = new Array(1, 0, 0, 1, 1, 0, 0, 1, 0, 0, 1, 1, 0, 0, 1, 1, 0, 1, 1, 0, 0);
  382.  
  383.                 for(i = 0; i < 16; i ++){
  384.                         document.write('<TR>');
  385.                         for(j = 0; j < 30; j ++){
  386.                                 n1 = j % 5;
  387.                                 n2 = Math.floor(j / 5) * 3;
  388.                                 n3 = n2 + 3;
  389.  
  390.                                 wc((cnum[n3] * n1 + cnum[n2] * (5 - n1)),
  391.                                 (cnum[n3 + 1] * n1 + cnum[n2 + 1] * (5 - n1)),
  392.                                 (cnum[n3 + 2] * n1 + cnum[n2 + 2] * (5 - n1)), i);
  393.                         }
  394.  
  395.                         document.writeln('</TR>');
  396.                 }
  397.                 </SCRIPT>
  398.  
  399.                 </TABLE>
  400.                 </TD>
  401.  
  402.                 <TD>
  403.                 <TABLE border=0 cellPadding=0 cellSpacing=0 id=GrayTable style="CURSOR: hand">
  404.                 <SCRIPT language=JavaScript>
  405.                 for(i = 255; i >= 0; i -= 8.5)
  406.                 document.write('<TR BGCOLOR=#' + ToHex(i) + ToHex(i) + ToHex(i) + '><TD TITLE=' + Math.floor(i * 16 / 17) + ' height=4 width=20></TD></TR>');
  407.                 </SCRIPT>
  408.  
  409.                 </TABLE>
  410.                 </TD>
  411.         </TR>
  412.         </TABLE>
  413.  
  414.  
  415.         <TABLE border=0 cellPadding=0 cellSpacing=10 align=center>
  416.         <TR>
  417.                 <TD noWrap align=middle rowSpan=2>选中色彩
  418.                 <TABLE border=1 cellPadding=0 cellSpacing=0 height=30 id=ShowColor width=40 bgcolor=""><TBODY><TR><TD></TD></TR></TBODY></TABLE>
  419.                 </TD>
  420.                 <TD noWrap rowSpan=2>基色: <SPAN id=RGB></SPAN><BR>亮度: <SPAN id=GRAY>120</SPAN><BR>代码: <INPUT id=SelColor size=7 value=""></TD>
  421.                 <TD><input id=Ok type=submit value="确定"></TD>
  422.         </TR>
  423.         <TR>
  424.                 <TD noWrap><input type=BUTTON onclick="window.close();" value="取消"></TD>
  425.         </TR>
  426.         </TABLE>
  427.  
  428. </td>
  429. </tr></table>
  430.  
  431.  
  432. </td></tr></table>
  433. </BODY></HTML>
downloadselcolor.htm Source code - Download Pcook CMS bubble guest v3.0 SDCMS version Source code
Related Source Codes/Software:
Oo 126 CMS movie site system - This procedure ASP + ACC/ASP + SQL, using new kern... 2016-09-21
IDC sales web site - Beautiful IDC sales web site source code 2016-09-21
NPOINT virtual host v1.7.0 formal version management system - The system main function is introduced 2016-09-21
Classified information network business in suzhou - Overall module: classification of supply and deman... 2016-09-21
Jie Yang v0.6.3 article system - System functions: 1, the system settings A confi... 2016-09-21
Age design website information management system SDCMS v1.1 SP1 - SDCMS is designed to build the information managem... 2016-09-21
Age design website information management system SDCMS v1.1 SP1 - SDCMS is designed to build the information managem... 2016-09-21
C9 v2.1.1 static post system - Program USES ASP + ACC structure design and develo... 2016-09-21
Imitation green download station perfect version - Before increased | software home page, on the basi... 2016-09-21
Subdomain hosting edition v1.9 s taobao, pat - The background site admin 2016-09-21
CRYENGINE - CRYENGINE is a powerful real-time game development... 2017-06-11
postal - 2017-06-11
reactide - Reactide is the first dedicated IDE for React web ... 2017-06-11
rkt - rkt is a pod-native container engine for Linux. It... 2017-06-11
uWebSockets - Tiny WebSockets https://for... 2017-06-11
realworld - TodoMVC for the RealWorld - Exemplary fullstack Me... 2017-06-11
goreplay - GoReplay is an open-source tool for capturing and ... 2017-06-10
pyenv - Simple Python version management 2017-06-10
redux-saga - An alternative side effect model for Redux apps ... 2017-06-10
angular-starter - 2017-06-10

 Back to top