html color checker?
how can i check the color of a 6 digit html code? is there a website for it? I can only find the basic colors : /
Public Comments
- Try this - http://www.w3schools.com/html/html_colors.asp
- This is a color checker made by myself, copy to notepad and save it as a htm file and run it in Internet Explorer. Please move your mouse to the "..." sign to view the correct HTML/Javascript because yahoo hides the long string <html> <head> <title>Color Checker</title> </head> <script language="javascript"> function checkchar(obj) { var getc; var charlist = new Array("G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ",".",",","\~","\!","\@","\#","\$","\%","\^","\&","\*","\(","\)","\_","\-","\+","\\","\=","\{","\}","\[","\]","\:","\;","\"","\'","\<","\>","\?","\|","\n","\/","\`"); for(j=0;j<charlist.length;j++) { var len=obj.value.length - 1; if (obj.value.length == 2){len = 1}; if (len <= 0){len = 0} //window.status = len + ":full:" + obj.value.length getc = obj.value.charAt(len).toUpperCase(); if(charlist[j]==getc) { //window.status=getc + "?= charlist" + charlist[j] obj.value = obj.value.substring(0,len) } } } function read() { //clean colorhex.innerHTML = ""; colorview.style.border = "none"; label.style.color = "white"; colorview.style.backgroundColor = "white"; //catch color error try{ colorview.style.backgroundColor = "#" + red.value + green.value + blue.value} catch(err) { alert("Please type an acceptable web color!\nThe correct format MUST be #RRGGBB OR #RGB");return} //write info if colour is success colorhex.innerHTML = "Color: #" + red.value.toUpperCase() + green.value.toUpperCase() + blue.value.toUpperCase(); colorview.style.border = "solid 1px Black" label.style.color = "#000088"; } </script> <body style="overflow-y:hidden" onload="red.select();red.value='';green.value='';blue.value=''"> <p align="center"> <font face="Arial"># R:<input accesskey="r" title="Red" type="text" id="r" name="red" size="2" maxlength="2" onkeyup="checkchar(this);if(this.value.length == 2){green.select()}" style="border: 1px solid #FF6A6A; background-color: #FFEAEA">G:<input accesskey="g" type="text" title="Green" id="g" onkeydown="checkchar(this)" name="green" size="2" maxlength="2" onkeyup="checkchar(this);if(this.value.length == 2){blue.select()}" style="border: 1px solid #008000; background-color: #DDFFDD">B:<input accesskey="b" title="Blue" type="text" id="b" onkeydown="checkchar(this)" name="blue" size="2" maxlength="2" style="border: 1px solid #0000FF; background-color: #E8E8FF"> <input type="button" value="Check Color" name="B3" onclick="read()"></font></p> <hr noshade color="#000080" size="1"> <div style="font-family: Arial; font-size: 11pt;color :#000088;" id="colorhex"> </div><p id="label" style="font-family: Arial; color: white; font-size: 11pt;">This is the color sample:</p> <div id="colorview" style="height:200"></div> </body> </html>
Powered by Yahoo! Answers