1 <!DOCTYPE html PUBLIC
"-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5 <!-- jQuery/jQueryUI (hosted) -->
6 <script src=
"https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.js"></script>
7 <script src=
"https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.16/jquery-ui.js"></script>
8 <script src=
"http://jqueryui.com/themeroller/themeswitchertool/"></script>
9 <link href=
"http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.16/themes/ui-lightness/jquery-ui.css" rel=
"stylesheet" type=
"text/css"/>
10 <!--link href="aristo/Aristo.css" rel="stylesheet" type="text/css"/-->
13 font-family: 'Segoe UI', Verdana, Arial, Helvetica, sans-serif;
19 display: inline-block;
22 <script src=
"jquery.colorpicker.js"></script>
23 <link href=
"jquery.colorpicker.css" rel=
"stylesheet" type=
"text/css"/>
26 $('#switcher').themeswitcher();
28 $('#cp1').colorpicker({
29 onClose: function(hex
, rgba
, inst
) {
32 onSelect: function(hex
, rgba
, inst
) {
42 altProperties
: 'background-color,color'
45 $('#cp2').colorpicker({
50 var cpb
= $('#cp-buttons').colorpicker({
54 $('#cp-button-open').click( function() {
55 cpb
.colorpicker('open');
57 $('#cp-button-close').click( function() {
58 cpb
.colorpicker('close');
60 $('#cp-button-disable').click( function() {
61 cpb
.colorpicker('disable');
67 <div id=
"switcher"></div>
69 Color:
<input type=
"color" id=
"cp1" value=
"ff9900"/>
70 <div class=
"cp1-alt" style=
"border: 1px inset; width: 180px; height: 60px;">
71 <div style=
" background-color: white; border: 1px solid black; margin: 5px; padding: 5px; font-size: 20px; font-weight: bold;">Text
</div>
76 Inline:
<div id=
"cp2"></div>
80 Activated by buttons:
<input type=
"color" id=
"cp-buttons" value=
"927abc"/>
81 <br/><button id=
"cp-button-open">Open
</button>
82 <br/><button id=
"cp-button-close">Close
</button>
83 <br/><button id=
"cp-button-disable">Disable
</button>