This article mainly introduces how to obtain the WEB security Color List by JavaScript, analyzes the definition of web security color and the implementation skills of javascript to obtain web Security color, which has some reference value, for more information about how to use JavaScript to obtain the WEB security color list, see the following example. Share it with you for your reference. The details are as follows:
Web security color refers to the eye color that can make the eyes of visitors comfortable.
// JavaScript gets 216 WEB security color values var n = 0; var hex = new Array ('FF ', 'CC', '99', '66', '33 ', '00'); function colorPanel () {for (var I = 0; I <6; I ++) {for (var j = 0; j <6; j ++) {for (var k = 0; k <6; k ++) {n ++; var color = hex [j] + hex [k] + hex [I]; document. write (color +'
');}}}}
I hope this article will help you design javascript programs.