测试颜色(#000-#fff)

 

 

<html>
<head>
    <SCRIPT language=javascript>
            function makeArray(q) {
                for (i = 1; i <= q; i++) {
                    this[i] = 0
                }
            }
        Colors = new makeArray(6);
        Colors[1] = "00";
        Colors[2] = "33";
        Colors[3] = "66";
        Colors[4] = "99";
        Colors[5] = "CC";
        Colors[6] = "FF";
    </SCRIPT>
    <title>测试颜色</title>
    <style type="text/css">
        A {
            COLOR: black;
            FONT-SIZE: 9pt;
            FONT-WEIGHT: 400;
            TEXT-DECORATION: none
        }
    </style>
</head>
<body>
    <center>
        <table cellspacing=1 cellpadding=0>
            <SCRIPT language=javascript>
                for (i = 1; i <= 6; i++) {
                    for (j = 1; j <= 6; j++) {
                        for (k = 1; k <= 6; k++) {
                            var thiscolor = Colors[i] + Colors[j] + Colors[k];
                            document.writeln("<tr><td height = 20 bgcolor = \"#" + thiscolor + "\" align = right><a href = ");
                            document.writeln("\'\' onMouseOver = \"document.bgColor=\'" + thiscolor + "\'\">" + thiscolor + "</a></td></tr>");
                        }
                    }
                }
            </SCRIPT>
        </table>
    </center>
</body>
</html>

 

相关文章:

  • 2021-06-17
  • 2022-01-21
  • 2022-12-23
  • 2021-08-13
  • 2022-02-05
  • 2021-07-03
  • 2021-09-27
猜你喜欢
  • 2021-08-10
  • 2022-12-23
  • 2021-12-27
  • 2021-04-17
  • 2022-02-02
  • 2021-12-01
  • 2021-11-24
相关资源
相似解决方案