raphpell on Jul 16, 2005 at 6:29:53 AM (# 3) This message has been edited.http://www.creation-web.info/Articles/Articles/Controles/ColorPicker/exemples/W3C%20Color%20Contrast.htm cdrom600 on Jul 16, 2005 at 6:48:57 AM (# 4)Awesome! Thanks. I also found: http://www.isolated-designs.net/core/projects/28/javascript-color-picker. hedger on Jul 16, 2005 at 10:18:11 AM (# 5)<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML> <HEAD> <TITLE>Choose Font Color Sample</TITLE>
<SCRIPT>
var sInitColor = null; function callColorDlg(CallBackFunction){
if (sInitColor == null) //display color dialog box var sColor = dlgHelper.ChooseColorDlg(); else var sColor = dlgHelper.ChooseColorDlg(sInitColor); //change decimal to hex sColor = sColor.toString(16); //add extra zeroes if hex number is less than 6 digits if (sColor.length < 6) { var sTempString = "000000".substring(0,6-sColor.length); sColor = sTempString.concat(sColor); } //change color of the text in the div sInitColor = sColor;
return sColor; }
function A(ss) { sColor = callColorDlg(); oDiv.style.color= sColor; } </SCRIPT>
</HEAD>
<BODY >
<BUTTON ID="ofntColor" TITLE="Choose Font Color" onclick="A()">Choose Font color</BUTTON>
<DIV id=oDiv> Click the button to choose a font color using the choose color dialog. </DIV>
<OBJECT id=dlgHelper CLASSID="clsid:3050f819-98b5-11cf-bb82-00aa00bdce0b" width="0px" height="0px"></OBJECT>
</body> </html>
cdrom600 on Jul 16, 2005 at 5:10:07 PM (# 6)Thanks Hedger, but I need something cross-browser. Still, if I ever need one for IE-only, I'll use that one. hedger on Jul 17, 2005 at 2:48:57 AM (# 7)yep, since cross-browser color-picker is everywhere. so I provide you this IE-only version. :-D.
cdrom600 on Jul 18, 2005 at 3:14:23 PM (# 8) This message has been edited.Here's what I needed this for: http://www-personal.engin.umich.edu/~coeproka/pixadraw/pixadraw.html A kind of pixel art application on the Web. I'm hoping to add functions such as saving, etc. this week. PS: This link will be valid until this Friday or Saturday. cdrom600 on Jul 19, 2005 at 12:35:59 PM (# 9)Never mind the last link. It is no longer working...I'm moving it to my server and modifying it.
|