Server IP : 180.180.241.3 / Your IP : 216.73.216.252 Web Server : Microsoft-IIS/7.5 System : Windows NT NETWORK-NHRC 6.1 build 7601 (Windows Server 2008 R2 Standard Edition Service Pack 1) i586 User : IUSR ( 0) PHP Version : 5.3.28 Disable Function : NONE MySQL : ON | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /AppServ/www/umedia3/js/colorpicker/ |
Upload File : |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML> <HEAD> <TITLE> New Document </TITLE> <META NAME="Generator" CONTENT="EditPlus"> <META NAME="Author" CONTENT=""> <META NAME="Keywords" CONTENT=""> <META NAME="Description" CONTENT=""> </HEAD> <BODY> <link rel="stylesheet" href="COLOURloversColorPicker.css" type="text/css" media="all" /> <script type="text/JavaScript" src="COLOURloversColorPicker.js"></script> <div id="CLCP" class="CLCP"></div> <script type="text/JavaScript"> _whichField = "hexValue_0"; CLCPHandler = function(_hex) { // This function gets called by the picker when the sliders are being dragged. The variable _hex contains the current hex value from the picker // This code serves as an example only, here we use it to do three things: // Here we simply drop the variable _hex into the input field, so we can see what the hex value coming from the picker is: document.getElementById(_whichField).value = _hex; // Here is where we color the BG of a div to preview the color: //document.getElementById("CLCPUpdateDiv").style.background = ("#" + _hex); // Giving you control over this function really puts the reigns in your hands. Rewrite this function as you see fit to really take control of this color picker. } // Settings: _CLCPdisplay = "none"; // Values: "none", "block". Default "none" _CLCPisDraggable = true; // Values: true, false. Default true _CLCPposition = "absolute"; // Values: "absolute", "relative". Default "absolute" _CLCPinitHex = "0039B3"; // Values: Any valid hex value. Default "ffffff" CLCPinitPicker(); </script> <input name="YourInputName" id="hexValue_0" style="width: 100px;" maxlength="6" value="0000FF" /> <a href="JavaScript:_whichField='hexValue_0';CLCPshowPicker({_hex: document.getElementById('hexValue_0').value});">Show picker and load the color to the left</a> </BODY> </HTML>