<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>js颜色选择器插件</title> </head> <body> <script type="text/javascript" src="jscolor.min.js"></script> <script type="text/javascript"> jscolor.dir='images/';//插件需要用到的图片的存放目录 jscolor.bindClass='phpernote';//需要绑定的class jscolor.install(); </script> Click here: <input class="phpernote" value="66ff00"> </body> </html>