jscolor

Submitted script - Author: jscolor.com

Bookmark and Share

About

This great script from jscolor.com makes it easy for your users to pick colors for input fields on your web page/web application.

When the input field receives focus, a color palette will appear below it. Now, you can choose to type in the color value as before, or you can set it by clicking on the palette.

Also notice that background color of the input field will change according to your color value. It's also nice to see that if you choose a dark color, the text color will change from black to white.

Setup

The installation is very easy. All you have to do is to add a SCRIPT tag where you refer to jscolor.js and then assign your input fields to the class "color".

Example:

<script type="text/javascript" src="jscolor/jscolor.js"></script>
<input class="color">

Demo

This is how it looks when I implement the code above:

Please pick your favourite color:

Download script

You can download this script and see more demos at jscolor.com.

Comments

No one has commented this - be first!

Post your comment

Don't have an avatar? Create one at Gravatar.com.

Confirmation code:

Go to cbolson.com


About/Contact | A good idea? | Submit a script | Privacy notice
© 2005 - 2024 dhtmlgoodies.com