Location: PHPKode > scripts > True Color Picker 2 > TrueColorPicker_2/index.php
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script src="colorPicker.js" language="javascript" type="text/javascript"></script>
<script src="dom-drag.js" language="javascript" type="text/javascript"></script>
<title>True Color Picker 2.0</title>
<style>
body{
	margin:0px;
	padding:0px;
}
#brightnessBoxContainer{
	position:relative;
}
div#mouseLeft,div#mouseRight,div#newLeft,div#newRight,div#currentLeft,div#currentRight{
	position:absolute;
}
div#mouseLeft{
	color:#000000;
	top:13px;
	left:315px;
}
div#mouseRight{
	color:#FFFFFF;
	top:13px;
	left:373px;
}
div#newLeft{
	color:#000000;
	top:34px;
	left:315px;	
}
div#newRight{
	color:#FFFFFF;
	top:69px;
	left:387px;
}
div#currentLeft{
	color:#000000;
	top:83px;
	left:315px;	
}
div#currentRight{
	color:#FFFFFF;
	top:118px;
	left:368px;
}
</style>
<script language="javascript" type="text/javascript">
	var currentX;
	var currentY;
</script>
</head>

<?
# Preloaded Color Code
$preload = $_GET['preload'];
# Details factor cannot be varied for time being, for crosshair positioning problems, default 64
#$df = $_GET['df'];

# New Arguments
# Preloaded Base Color, to show the right brightness box at startup
if(!isset($_GET['bc']) || empty($_GET['bc'])){
	$bc = '00ffff'; # Default cyan (Martin's choice)
}else{
	$bc = $_GET['bc'];
}

# Preloaded Arrow Position, tempY
if(!isset($_GET['arrowPosition'])){
	$arrowsPosition = 135; # Default 140 -5,pointing cyan
}else{
	$arrowsPosition = $_GET['arrowPosition'];
}

if($arrowsPosition < 0){
	$arrowsPosition = 0;
}

# Preloaded Crosshair Position
$cLeft = (isset($_GET['cLeft']))?$_GET['cLeft']:64;
$cTop =  (isset($_GET['cTop']))?$_GET['cTop']:1;

require_once ('class.TrueColorPicker.php');
$hueFile = "hueColors.txt";
eval(file_get_contents($hueFile));
?>
<body onload="init('<?=$_GET['htmlId']?>','<?=$preload?>','<?=$bc?>','<?=$arrowsPosition?>','<?=$cLeft?>','<?=$cTop?>');">
<div id="wrapper">
<?
	$cb = new TrueColorPicker();
	if(!empty($preload)){
		$cb->setPreload($preload);
	}
	$cb->build();
?>
</div>
<!-- Arrows -->
<div id="arrowsColorPicker" style="position:absolute;left:273px;_left:273px;top:140px;z-index:500;"><img src="arrowsColorPicker2.gif" /></div>	 
</body>
</html>
Return current item: True Color Picker 2