网页颜色选择器 - 颜色代码对照表
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
网页颜色选择器- 颜色代码对照表用法:
点击你需要的颜色,屏幕就会呈现出效果,并显示出颜色的名称和颜色数值
使用方法:把代码复制到记事本中,再把.txt保存为.html格式或.mht格式就可以了
是制作网页时的好帮手
function ChangeColor(form, ColorName)
{ var ColorV alue = " ";
if (ColorName == 'aliceblue') ColorV alue = "#F0F8FF";
if (ColorName == 'antiquewhite') ColorV alue = "#FAEBD7";
if (ColorName == 'aqua') ColorV alue = "#00FFFF";
if (ColorName == 'aquamarine') ColorV alue = "#7FFFD4";
if (ColorName == 'azure') ColorV alue = "#F0FFFF";
if (ColorName == 'beige') ColorV alue = "#F5F5DC";
if (ColorName == 'bisque') ColorV alue = "#FFE4C4";
if (ColorName == 'black') ColorV alue = "#000000";
if (ColorName == 'blanchedalmond') ColorV alue = "#FFEBCD";
if (ColorName == 'blue') ColorV alue = "#0000FF";
if (ColorName == 'blueviolet') ColorV alue = "#8A2BE2";
if (ColorName == 'brown') ColorV alue = "#A52A2A";
if (ColorName == 'burlywood') ColorV alue = "#DEB887";
if (ColorName == 'cadetblue') ColorV alue = "#5F9EA0";
if (ColorName == 'chartreuse') ColorV alue = "#7FFF00";
if (ColorName == 'chocolate') ColorV alue = "#D2691E";
if (ColorName == 'coral') ColorV alue = "#FF7F50";
if (ColorName == 'cornflowerblue') ColorV alue = "#6495ED";
if (ColorName == 'cornsilk') ColorV alue = "#FFF8DC";
if (ColorName == 'crimson') ColorV alue = "#DC143C";
if (ColorName == 'cyan') ColorV alue = "#00FFFF";
if (ColorName == 'darkblue') ColorV alue = "#00008B";
if (ColorName == 'darkcyan') ColorV alue = "#008B8B";
if (ColorName == 'darkgoldenrod') ColorV alue = "#B8860B";
if (ColorName == 'darkgray') ColorV alue = "#A9A9A9";
if (ColorName == 'darkgreen') ColorV alue = "#006400";
if (ColorName == 'darkkhaki') ColorV alue = "#BDB76B";
if (ColorName == 'darkolivegreen') ColorV alue = "#556B2F";
if (ColorName == 'darkorange') ColorV alue = "#FF8C00";
if (ColorName == 'darkorchid') ColorV alue = "#9932CC";
if (ColorName == 'darkred') ColorV alue = "#8B0000";
if (ColorName == 'darksalmon') ColorV alue = "#E9967A";
if (ColorName == 'darkseagreen') ColorV alue = "#8FBC8F";
if (ColorName == 'darkslateblue') ColorV alue = "#483D8B";
if (ColorName == 'darkslategray') ColorV alue = "#2F4F4F";
if (ColorName == 'darkturquoise') ColorV alue = "#00CED1";
if (ColorName == 'darkviolet') ColorV alue = "#9400D3";
if (ColorName == 'deeppink') ColorV alue = "#FF1493";
if (ColorName == 'deepskyblue') ColorV alue = "#00BFFF";
if (ColorName == 'dimgray') ColorV alue = "#696969";
if (ColorName == 'dodgerblue') ColorV alue = "#1E90FF";
if (ColorName == 'firebrick') ColorV alue = "#B22222";
if (ColorName == 'floralwhite') ColorV alue = "#FFFAF0";
if (ColorName == 'forestgreen') ColorV alue = "#228B22";
if (ColorName == 'fuchsia') ColorV alue = "#FF00FF";
if (ColorName == 'gainsboro') ColorV alue = "#DCDCDC";
if (ColorName == 'ghostwhite') ColorV alue = "#F8F8FF";
if (ColorName == 'gold') ColorV alue = "#FFD700";
if (ColorName == 'goldenrod') ColorV alue = "#DAA520";
if (ColorName == 'gray') ColorV alue = "#808080";
if (ColorName == 'green') ColorV alue = "#008000";
if (ColorName == 'greenyellow') ColorV alue = "#ADFF2F";
if (ColorName == 'honeydew') ColorV alue = "#F0FFF0";
if (ColorName == 'hotpink') ColorV alue = "#FF69B4";
if (ColorName == 'indianred') ColorV alue = "#CD5C5C";
if (ColorName == 'indigo') ColorV alue = "#4B0082";
if (ColorName == 'ivory') ColorV alue = "#FFFFF0";
if (ColorName == 'khaki') ColorV alue = "#F0E68C";
if (ColorName == 'lavender') ColorV alue = "#E6E6FA";
if (ColorName == 'lavenderblush') ColorV alue = "#FFF0F5";
if (ColorName == 'lawngreen') ColorV alue = "#7CFC00";
if (ColorName == 'lemonchiffon') ColorV alue = "#FFFACD";
if (ColorName == 'lightblue') ColorV alue = "#ADD8E6";
if (ColorName == 'lightcoral') ColorV alue = "#F08080";
if (ColorName == 'lightcyan') ColorV alue = "#E0FFFF";
if (ColorName == 'lightgoldenrodyellow') ColorV alue = "#FAFAD2"; if (ColorName == 'lightgreen') ColorV alue = "#90EE90";
if (ColorName == 'lightgrey') ColorV alue = "#D3D3D3";
if (ColorName == 'lightpink') ColorV alue = "#FFB6C1";
if (ColorName == 'lightsalmon') ColorV alue = "#FFA07A";