Jonathan Snook.ca

 

Custom Colour Picker

As functional as the colour picker from Microsoft seems to be, I figured that there is always room for improvement. The selcolor.htm file from Microsoft can be completely replaced with my new version. This colour picker dialog box can also be easily included into other Web applications as the parameters that are passed back are not DEC specific.

[Download the code!]

I revamped it with the following changes:

I recommend opening the colour picker using the following parameters for optimal use:

var arr = showModalDialog( "selcolor.htm", 

          "", "dialogWidth:380px; dialogHeight:235px; scroll:no;

          status:no; help:no");

If you have some nice modifications to the code, let me know and I'll include them in here on the site!

Enjoy!

<< Check out the list of all articles