SiteExperts.com Logo Home | Community | Developer's Paradise
User Groups | Site Tools | Site Information | Search
 Main Menu
 Forums
SiteExperts.com Forums
All Discussions

SiteExperts Feedback
The Lounge
Dynamic HTML
Site Design/ Critiques
HTML and CSS
XML Technologies
The Wireless Internet
Internet Explorer
Microsoft .NET
The Server
Technical Support

Sponsored Links

User Groups : Forums : SiteExperts : Dynamic HTML :

Previous DiscussionNext Discussion
 DHTML Color Picker

I remember seeing somewhere a nice DHTML color picker that could be used in a JS application. The problem is, I can't find it.

Can anyone please point me to a good color picker script, preferably GPL or LGPL-licensed?

Thanks so much, cdrom600

Started By cdrom600 on Jul 15, 2005 at 7:39:08 PM

9 Response(s) | Reply

Earlier Replies | Replies 3 to 9 of 9 | Later Replies
Goto Page: 2 1
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.


Earlier Replies | Replies 3 to 9 of 9 | Later Replies
Goto Page: 2 1

To respond to a discussion, you must first logon.

If you are not registered, please register yourself to become a member of the SiteExperts.community.

User Name
Password
Copyright 1997-2004 InsideDHTML.com, LLC. All rights reserved.