adm/style/colour_swatch.html
changeset 0 ceef6d64c21d
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/adm/style/colour_swatch.html	Wed Mar 07 16:41:10 2012 +0400
     1.3 @@ -0,0 +1,78 @@
     1.4 +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
     1.5 +<html xmlns="http://www.w3.org/1999/xhtml" dir="{S_CONTENT_DIRECTION}" lang="{S_USER_LANG}" xml:lang="{S_USER_LANG}">
     1.6 +<head>
     1.7 +<meta http-equiv="Content-Type" content="text/html; charset={S_CONTENT_ENCODING}" />
     1.8 +<meta http-equiv="Content-Style-Type" content="text/css" />
     1.9 +<meta http-equiv="Content-Language" content="{S_USER_LANG}" />
    1.10 +<meta http-equiv="imagetoolbar" content="no" />
    1.11 +<title>{L_COLOUR_SWATCH}</title>
    1.12 +
    1.13 +<style type="text/css">
    1.14 +/* <![CDATA[ */
    1.15 +	body {
    1.16 +		background-color: #404040;
    1.17 +		color: #fff;
    1.18 +	}
    1.19 +
    1.20 +	td {
    1.21 +		border: solid 1px #333; 
    1.22 +	}
    1.23 +
    1.24 +	.over { 
    1.25 +		border-color: white; 
    1.26 +	}
    1.27 +
    1.28 +	.out {
    1.29 +		border-color: #333333; 
    1.30 +	}
    1.31 +
    1.32 +	img {
    1.33 +		border: 0;
    1.34 +	}
    1.35 +/* ]]> */
    1.36 +</style>
    1.37 +</head>
    1.38 +
    1.39 +<body>
    1.40 +
    1.41 +<script type="text/javascript">
    1.42 +// <![CDATA[
    1.43 +	var r = 0, g = 0, b = 0;
    1.44 +
    1.45 +	var numberList = new Array(6);
    1.46 +	numberList[0] = '00';
    1.47 +	numberList[1] = '33';
    1.48 +	numberList[2] = '66';
    1.49 +	numberList[3] = '99';
    1.50 +	numberList[4] = 'CC';
    1.51 +	numberList[5] = 'FF';
    1.52 +
    1.53 +	document.writeln('<table cellspacing="0" cellpadding="0" border="0">');
    1.54 +
    1.55 +	for (r = 0; r < 6; r++)
    1.56 +	{
    1.57 +		document.writeln('<tr>');
    1.58 +
    1.59 +		for (g = 0; g < 6; g++)
    1.60 +		{
    1.61 +			for (b = 0; b < 6; b++)
    1.62 +			{
    1.63 +				color = String(numberList[r]) + String(numberList[g]) + String(numberList[b]);
    1.64 +				document.write('<td style="background-color: #' + color + ';" onmouseover="this.className=\'over\'" onmouseout="this.className=\'out\'">');
    1.65 +				document.write('<a href="#" onclick="cell(\'' + color + '\'); return false;"><img src="{T_IMAGES_PATH}spacer.gif" width="15" height="12" alt="#' + color + '" title="#' + color + '" \/><\/a>');
    1.66 +				document.writeln('<\/td>');
    1.67 +			}
    1.68 +		}
    1.69 +		document.writeln('<\/tr>');
    1.70 +	}
    1.71 +	document.writeln('<\/table>');
    1.72 +
    1.73 +	function cell(color)
    1.74 +	{
    1.75 +		opener.document.forms["{OPENER}"].{NAME}.value = color;
    1.76 +	}
    1.77 +// ]]>
    1.78 +</script>
    1.79 +
    1.80 +</body>
    1.81 +</html>
    1.82 \ No newline at end of file