Location: PHPKode > scripts > ScreamingToDos > std-0.9/colorpicker.php
<?PHP
require "config.inc.php";
$auth = 0;
require "login.php";

if (!(eregi("colorpicker\.[a-z]{1,4}$",$PHP_SELF))) { Header("Location: index.php"); }

$currentPage = "STD->color picker";
$colorPicker = 1;
require "header.php";
?>
<center>
<font face="<?PHP echo $pageFont ?>" size="+<?PHP echo $pageFontsize+3 ?>">STD COLOR PICKER</font>
<font face="<?PHP echo $pageFont ?>" size="<?PHP echo $pageFontsize ?>">
<table border="0" cellpadding="0" cellspacing="2">
 <tr>
  <td>
   <img src="images/colorpicker.gif" width="309" height="207" usemap="#picker" border="0"><br>
  </td>
 </tr>
</table>
<form name="pickerForm">
Selected color:
<br><p></p>
<input type="text" name="hexVal" size="8" maxlength="7">
<br><p></p>
<input type="button" value="Done" onClick="window.close();opener.setVal('<?PHP echo $URL ?>',document.pickerForm.hexVal.value);">
</form>
<map name="picker">
<area shape="rect" coords="2, 2, 17, 17" href="javascript:pick('FFFFFF');">
<area shape="rect" coords="19, 2, 34, 17" href="javascript:pick('FFFFCC');">
<area shape="rect" coords="36, 2, 51, 17" href="javascript:pick('FFFF99');">
<area shape="rect" coords="53, 2, 68, 17" href="javascript:pick('FFFF66');">
<area shape="rect" coords="70, 2, 85, 17" href="javascript:pick('FFFF33');">
<area shape="rect" coords="87, 2, 102, 17" href="javascript:pick('FFFF00');">
<area shape="rect" coords="104, 2, 119, 17" href="javascript:pick('CCFFFF');">
<area shape="rect" coords="121, 2, 136, 17" href="javascript:pick('CCFFCC');">
<area shape="rect" coords="138, 2, 153, 17" href="javascript:pick('CCFF99');">
<area shape="rect" coords="155, 2, 170, 17" href="javascript:pick('CCFF66');">
<area shape="rect" coords="172, 2, 187, 17" href="javascript:pick('CCFF33');">
<area shape="rect" coords="189, 2, 204, 17" href="javascript:pick('CCFF00');">
<area shape="rect" coords="206, 2, 221, 17" href="javascript:pick('99FFFF');">
<area shape="rect" coords="223, 2, 238, 17" href="javascript:pick('99FFCC');">
<area shape="rect" coords="240, 2, 255, 17" href="javascript:pick('99FF99');">
<area shape="rect" coords="257, 2, 272, 17" href="javascript:pick('99FF66');">
<area shape="rect" coords="274, 2, 289, 17" href="javascript:pick('99FF33');">
<area shape="rect" coords="291, 2, 306, 17" href="javascript:pick('99FF00');">
<area shape="rect" coords="2, 19, 17, 34" href="javascript:pick('FFCCFF');">
<area shape="rect" coords="19, 19, 34, 34" href="javascript:pick('FFCCCC');">
<area shape="rect" coords="36, 19, 51, 34" href="javascript:pick('FFCC99');">
<area shape="rect" coords="53, 19, 68, 34" href="javascript:pick('FFCC66');">
<area shape="rect" coords="70, 19, 85, 34" href="javascript:pick('FFCC33');">
<area shape="rect" coords="87, 19, 102, 34" href="javascript:pick('FFCC00');">
<area shape="rect" coords="104, 19, 119, 34" href="javascript:pick('CCCCFF');">
<area shape="rect" coords="121, 19, 136, 34" href="javascript:pick('CCCCCC');">
<area shape="rect" coords="138, 19, 153, 34" href="javascript:pick('CCCC99');">
<area shape="rect" coords="155, 19, 170, 34" href="javascript:pick('CCCC66');">
<area shape="rect" coords="172, 19, 187, 34" href="javascript:pick('CCCC33');">
<area shape="rect" coords="189, 19, 204, 34" href="javascript:pick('CCCC00');">
<area shape="rect" coords="206, 19, 221, 34" href="javascript:pick('99CCFF');">
<area shape="rect" coords="223, 19, 238, 34" href="javascript:pick('99CCCC');">
<area shape="rect" coords="240, 19, 255, 34" href="javascript:pick('99CC99');">
<area shape="rect" coords="257, 19, 272, 34" href="javascript:pick('99CC66');">
<area shape="rect" coords="274, 19, 289, 34" href="javascript:pick('99CC33');">
<area shape="rect" coords="291, 19, 306, 34" href="javascript:pick('99CC00');">
<area shape="rect" coords="2, 36, 17, 51" href="javascript:pick('FF99FF');">
<area shape="rect" coords="19, 36, 34, 51" href="javascript:pick('FF99CC');">
<area shape="rect" coords="36, 36, 51, 51" href="javascript:pick('FF9999');">
<area shape="rect" coords="53, 36, 68, 51" href="javascript:pick('FF9966');">
<area shape="rect" coords="70, 36, 85, 51" href="javascript:pick('FF9933');">
<area shape="rect" coords="87, 36, 102, 51" href="javascript:pick('FF9900');">
<area shape="rect" coords="104, 36, 119, 51" href="javascript:pick('CC99FF');">
<area shape="rect" coords="121, 36, 136, 51" href="javascript:pick('CC99CC');">
<area shape="rect" coords="138, 36, 153, 51" href="javascript:pick('CC9999');">
<area shape="rect" coords="155, 36, 170, 51" href="javascript:pick('CC9966');">
<area shape="rect" coords="172, 36, 187, 51" href="javascript:pick('CC9933');">
<area shape="rect" coords="189, 36, 204, 51" href="javascript:pick('CC9900');">
<area shape="rect" coords="206, 36, 221, 51" href="javascript:pick('9999FF');">
<area shape="rect" coords="223, 36, 238, 51" href="javascript:pick('9999CC');">
<area shape="rect" coords="240, 36, 255, 51" href="javascript:pick('999999');">
<area shape="rect" coords="257, 36, 272, 51" href="javascript:pick('999966');">
<area shape="rect" coords="274, 36, 289, 51" href="javascript:pick('999933');">
<area shape="rect" coords="291, 36, 306, 51" href="javascript:pick('999900');">
<area shape="rect" coords="2, 53, 17, 68" href="javascript:pick('FF66FF');">
<area shape="rect" coords="19, 53, 34, 68" href="javascript:pick('FF66CC');">
<area shape="rect" coords="36, 53, 51, 68" href="javascript:pick('FF6699');">
<area shape="rect" coords="53, 53, 68, 68" href="javascript:pick('FF6666');">
<area shape="rect" coords="70, 53, 85, 68" href="javascript:pick('FF6633');">
<area shape="rect" coords="87, 53, 102, 68" href="javascript:pick('FF6600');">
<area shape="rect" coords="104, 53, 119, 68" href="javascript:pick('CC66FF');">
<area shape="rect" coords="121, 53, 136, 68" href="javascript:pick('CC66CC');">
<area shape="rect" coords="138, 53, 153, 68" href="javascript:pick('CC6699');">
<area shape="rect" coords="155, 53, 170, 68" href="javascript:pick('CC6666');">
<area shape="rect" coords="172, 53, 187, 68" href="javascript:pick('CC6633');">
<area shape="rect" coords="189, 53, 204, 68" href="javascript:pick('CC6600');">
<area shape="rect" coords="206, 53, 221, 68" href="javascript:pick('9966FF');">
<area shape="rect" coords="223, 53, 238, 68" href="javascript:pick('9966CC');">
<area shape="rect" coords="240, 53, 255, 68" href="javascript:pick('996699');">
<area shape="rect" coords="257, 53, 272, 68" href="javascript:pick('996666');">
<area shape="rect" coords="274, 53, 289, 68" href="javascript:pick('996633');">
<area shape="rect" coords="291, 53, 306, 68" href="javascript:pick('996600');">
<area shape="rect" coords="2, 70, 17, 85" href="javascript:pick('FF33FF');">
<area shape="rect" coords="19, 70, 34, 85" href="javascript:pick('FF33CC');">
<area shape="rect" coords="36, 70, 51, 85" href="javascript:pick('FF3399');">
<area shape="rect" coords="53, 70, 68, 85" href="javascript:pick('FF3366');">
<area shape="rect" coords="70, 70, 85, 85" href="javascript:pick('FF3333');">
<area shape="rect" coords="87, 70, 102, 85" href="javascript:pick('FF3300');">
<area shape="rect" coords="104, 70, 119, 85" href="javascript:pick('CC33FF');">
<area shape="rect" coords="121, 70, 136, 85" href="javascript:pick('CC33CC');">
<area shape="rect" coords="138, 70, 153, 85" href="javascript:pick('CC3399');">
<area shape="rect" coords="155, 70, 170, 85" href="javascript:pick('CC3366');">
<area shape="rect" coords="172, 70, 187, 85" href="javascript:pick('CC3333');">
<area shape="rect" coords="189, 70, 204, 85" href="javascript:pick('CC3300');">
<area shape="rect" coords="206, 70, 221, 85" href="javascript:pick('9933FF');">
<area shape="rect" coords="223, 70, 238, 85" href="javascript:pick('9933CC');">
<area shape="rect" coords="240, 70, 255, 85" href="javascript:pick('993399');">
<area shape="rect" coords="257, 70, 272, 85" href="javascript:pick('993366');">
<area shape="rect" coords="274, 70, 289, 85" href="javascript:pick('993333');">
<area shape="rect" coords="291, 70, 306, 85" href="javascript:pick('993300');">
<area shape="rect" coords="2, 87, 17, 102" href="javascript:pick('FF00FF');">
<area shape="rect" coords="19, 87, 34, 102" href="javascript:pick('FF00CC');">
<area shape="rect" coords="36, 87, 51, 102" href="javascript:pick('FF0099');">
<area shape="rect" coords="53, 87, 68, 102" href="javascript:pick('FF0066');">
<area shape="rect" coords="70, 87, 85, 102" href="javascript:pick('FF0033');">
<area shape="rect" coords="87, 87, 102, 102" href="javascript:pick('FF0000');">
<area shape="rect" coords="104, 87, 119, 102" href="javascript:pick('CC00FF');">
<area shape="rect" coords="121, 87, 136, 102" href="javascript:pick('CC00CC');">
<area shape="rect" coords="138, 87, 153, 102" href="javascript:pick('CC0099');">
<area shape="rect" coords="155, 87, 170, 102" href="javascript:pick('CC0066');">
<area shape="rect" coords="172, 87, 187, 102" href="javascript:pick('CC0033');">
<area shape="rect" coords="189, 87, 204, 102" href="javascript:pick('CC0000');">
<area shape="rect" coords="206, 87, 221, 102" href="javascript:pick('9900FF');">
<area shape="rect" coords="223, 87, 238, 102" href="javascript:pick('9900CC');">
<area shape="rect" coords="240, 87, 255, 102" href="javascript:pick('990099');">
<area shape="rect" coords="257, 87, 272, 102" href="javascript:pick('990066');">
<area shape="rect" coords="274, 87, 289, 102" href="javascript:pick('990033');">
<area shape="rect" coords="291, 87, 306, 102" href="javascript:pick('990000');">
<area shape="rect" coords="2, 104, 17, 119" href="javascript:pick('66FFFF');">
<area shape="rect" coords="19, 104, 34, 119" href="javascript:pick('66FFCC');">
<area shape="rect" coords="36, 104, 51, 119" href="javascript:pick('66FF99');">
<area shape="rect" coords="53, 104, 68, 119" href="javascript:pick('66FF66');">
<area shape="rect" coords="70, 104, 85, 119" href="javascript:pick('66FF33');">
<area shape="rect" coords="87, 104, 102, 119" href="javascript:pick('66FF00');">
<area shape="rect" coords="104, 104, 119, 119" href="javascript:pick('33FFFF');">
<area shape="rect" coords="121, 104, 136, 119" href="javascript:pick('33FFCC');">
<area shape="rect" coords="138, 104, 153, 119" href="javascript:pick('33FF99');">
<area shape="rect" coords="155, 104, 170, 119" href="javascript:pick('33FF66');">
<area shape="rect" coords="172, 104, 187, 119" href="javascript:pick('33FF33');">
<area shape="rect" coords="189, 104, 204, 119" href="javascript:pick('33FF00');">
<area shape="rect" coords="206, 104, 221, 119" href="javascript:pick('00FFFF');">
<area shape="rect" coords="223, 104, 238, 119" href="javascript:pick('00FFCC');">
<area shape="rect" coords="240, 104, 255, 119" href="javascript:pick('00FF99');">
<area shape="rect" coords="257, 104, 272, 119" href="javascript:pick('00FF66');">
<area shape="rect" coords="274, 104, 289, 119" href="javascript:pick('00FF33');">
<area shape="rect" coords="291, 104, 306, 119" href="javascript:pick('00FF00');">
<area shape="rect" coords="2, 121, 17, 136" href="javascript:pick('66CCFF');">
<area shape="rect" coords="19, 121, 34, 136" href="javascript:pick('66CCCC');">
<area shape="rect" coords="36, 121, 51, 136" href="javascript:pick('66CC99');">
<area shape="rect" coords="53, 121, 68, 136" href="javascript:pick('66CC66');">
<area shape="rect" coords="70, 121, 85, 136" href="javascript:pick('66CC33');">
<area shape="rect" coords="87, 121, 102, 136" href="javascript:pick('66CC00');">
<area shape="rect" coords="104, 121, 119, 136" href="javascript:pick('33CCFF');">
<area shape="rect" coords="121, 121, 136, 136" href="javascript:pick('33CCCC');">
<area shape="rect" coords="138, 121, 153, 136" href="javascript:pick('33CC99');">
<area shape="rect" coords="155, 121, 170, 136" href="javascript:pick('33CC66');">
<area shape="rect" coords="172, 121, 187, 136" href="javascript:pick('33CC33');">
<area shape="rect" coords="189, 121, 204, 136" href="javascript:pick('33CC00');">
<area shape="rect" coords="206, 121, 221, 136" href="javascript:pick('00CCFF');">
<area shape="rect" coords="223, 121, 238, 136" href="javascript:pick('00CCCC');">
<area shape="rect" coords="240, 121, 255, 136" href="javascript:pick('00CC99');">
<area shape="rect" coords="257, 121, 272, 136" href="javascript:pick('00CC66');">
<area shape="rect" coords="274, 121, 289, 136" href="javascript:pick('00CC33');">
<area shape="rect" coords="291, 121, 306, 136" href="javascript:pick('00CC00');">
<area shape="rect" coords="2, 138, 17, 153" href="javascript:pick('6699FF');">
<area shape="rect" coords="19, 138, 34, 153" href="javascript:pick('6699CC');">
<area shape="rect" coords="36, 138, 51, 153" href="javascript:pick('669999');">
<area shape="rect" coords="53, 138, 68, 153" href="javascript:pick('669966');">
<area shape="rect" coords="70, 138, 85, 153" href="javascript:pick('669933');">
<area shape="rect" coords="87, 138, 102, 153" href="javascript:pick('669900');">
<area shape="rect" coords="104, 138, 119, 153" href="javascript:pick('3399FF');">
<area shape="rect" coords="121, 138, 136, 153" href="javascript:pick('3399CC');">
<area shape="rect" coords="138, 138, 153, 153" href="javascript:pick('339999');">
<area shape="rect" coords="155, 138, 170, 153" href="javascript:pick('339966');">
<area shape="rect" coords="172, 138, 187, 153" href="javascript:pick('339933');">
<area shape="rect" coords="189, 138, 204, 153" href="javascript:pick('339900');">
<area shape="rect" coords="206, 138, 221, 153" href="javascript:pick('0099FF');">
<area shape="rect" coords="223, 138, 238, 153" href="javascript:pick('0099CC');">
<area shape="rect" coords="240, 138, 255, 153" href="javascript:pick('009999');">
<area shape="rect" coords="257, 138, 272, 153" href="javascript:pick('009966');">
<area shape="rect" coords="274, 138, 289, 153" href="javascript:pick('009933');">
<area shape="rect" coords="291, 138, 306, 153" href="javascript:pick('009900');">
<area shape="rect" coords="2, 155, 17, 170" href="javascript:pick('6666FF');">
<area shape="rect" coords="19, 155, 34, 170" href="javascript:pick('6666CC');">
<area shape="rect" coords="36, 155, 51, 170" href="javascript:pick('666699');">
<area shape="rect" coords="53, 155, 68, 170" href="javascript:pick('666666');">
<area shape="rect" coords="70, 155, 85, 170" href="javascript:pick('666633');">
<area shape="rect" coords="87, 155, 102, 170" href="javascript:pick('666600');">
<area shape="rect" coords="104, 155, 119, 170" href="javascript:pick('3366FF');">
<area shape="rect" coords="121, 155, 136, 170" href="javascript:pick('3366CC');">
<area shape="rect" coords="138, 155, 153, 170" href="javascript:pick('336699');">
<area shape="rect" coords="155, 155, 170, 170" href="javascript:pick('336666');">
<area shape="rect" coords="172, 155, 187, 170" href="javascript:pick('336633');">
<area shape="rect" coords="189, 155, 204, 170" href="javascript:pick('336600');">
<area shape="rect" coords="206, 155, 221, 170" href="javascript:pick('0066FF');">
<area shape="rect" coords="223, 155, 238, 170" href="javascript:pick('0066CC');">
<area shape="rect" coords="240, 155, 255, 170" href="javascript:pick('006699');">
<area shape="rect" coords="257, 155, 272, 170" href="javascript:pick('006666');">
<area shape="rect" coords="274, 155, 289, 170" href="javascript:pick('006633');">
<area shape="rect" coords="291, 155, 306, 170" href="javascript:pick('006600');">
<area shape="rect" coords="2, 172, 17, 187" href="javascript:pick('6633FF');">
<area shape="rect" coords="19, 172, 34, 187" href="javascript:pick('6633CC');">
<area shape="rect" coords="36, 172, 51, 187" href="javascript:pick('663399');">
<area shape="rect" coords="53, 172, 68, 187" href="javascript:pick('663366');">
<area shape="rect" coords="70, 172, 85, 187" href="javascript:pick('663333');">
<area shape="rect" coords="87, 172, 102, 187" href="javascript:pick('663300');">
<area shape="rect" coords="104, 172, 119, 187" href="javascript:pick('3333FF');">
<area shape="rect" coords="121, 172, 136, 187" href="javascript:pick('3333CC');">
<area shape="rect" coords="138, 172, 153, 187" href="javascript:pick('333399');">
<area shape="rect" coords="155, 172, 170, 187" href="javascript:pick('333366');">
<area shape="rect" coords="172, 172, 187, 187" href="javascript:pick('333333');">
<area shape="rect" coords="189, 172, 204, 187" href="javascript:pick('333300');">
<area shape="rect" coords="206, 172, 221, 187" href="javascript:pick('0033FF');">
<area shape="rect" coords="223, 172, 238, 187" href="javascript:pick('0033CC');">
<area shape="rect" coords="240, 172, 255, 187" href="javascript:pick('003399');">
<area shape="rect" coords="257, 172, 272, 187" href="javascript:pick('003366');">
<area shape="rect" coords="274, 172, 289, 187" href="javascript:pick('003333');">
<area shape="rect" coords="291, 172, 306, 187" href="javascript:pick('003300');">
<area shape="rect" coords="2, 189, 17, 204" href="javascript:pick('6600FF');">
<area shape="rect" coords="19, 189, 34, 204" href="javascript:pick('6600CC');">
<area shape="rect" coords="36, 189, 51, 204" href="javascript:pick('660099');">
<area shape="rect" coords="53, 189, 68, 204" href="javascript:pick('660066');">
<area shape="rect" coords="70, 189, 85, 204" href="javascript:pick('660033');">
<area shape="rect" coords="87, 189, 102, 204" href="javascript:pick('660000');">
<area shape="rect" coords="104, 189, 119, 204" href="javascript:pick('3300FF');">
<area shape="rect" coords="121, 189, 136, 204" href="javascript:pick('3300CC');">
<area shape="rect" coords="138, 189, 153, 204" href="javascript:pick('330099');">
<area shape="rect" coords="155, 189, 170, 204" href="javascript:pick('330066');">
<area shape="rect" coords="172, 189, 187, 204" href="javascript:pick('330033');">
<area shape="rect" coords="189, 189, 204, 204" href="javascript:pick('330000');">
<area shape="rect" coords="206, 189, 221, 204" href="javascript:pick('0000FF');">
<area shape="rect" coords="223, 189, 238, 204" href="javascript:pick('0000CC');">
<area shape="rect" coords="240, 189, 255, 204" href="javascript:pick('000099');">
<area shape="rect" coords="257, 189, 272, 204" href="javascript:pick('000066');">
<area shape="rect" coords="274, 189, 289, 204" href="javascript:pick('000033');">
<area shape="rect" coords="291, 189, 306, 204" href="javascript:pick('000000');">

<?PHP
/*
   Uncomment this to recreate all those area tags. In order to conserve CPU usage,
   I figure it best to leave this part commented, and only uncomment it to generate
   new area tags (for example, if you want to chnage the HREF in the area tag).
 
$counter1 = 1;
$counter2 = 1;
$top_of_section = "FFFFFF";
$thenum = hexdec($top_of_section);
 for ($y = 2; $y <= 205; $y=$y+17) {
  for ($x = 2; $x <= 307; $x=$x+17) {
   $printHex = strtoupper(dechex($thenum));
   if (strlen($printHex) < 6) {
    for ($z = strlen($printHex); strlen($printHex) < 6; $printHex = "0".$printHex);
   }
   echo "<area shape=\"rect\" coords=\"$x, $y, ".($x + 15).", ".($y + 15)."\" href=\"javascript:pick('$printHex');\">\n";
   
   $thenum = $thenum - 51;
   if ($counter1 % 6 == 0) {
    $thenum = $thenum - 3342030;
    if ($counter1 % 18 == 0) {
     $thenum = hexdec($top_of_section) - ($counter2*hexdec("3300"));
     $counter2++;
     if ($counter1 % 108 == 0) {
      $counter2 = 1;
      $thenum = hexdec("990000") - 3276801; 
      $top_of_section = "66FFFF";
     }
    }
   }
   $counter1++;
  }
 }
*/
?>
</map>
</body>
</html>
Return current item: ScreamingToDos