Выбор цвета RGB-ленты в коридоре
(custom)
<script type="text/javascript" src="../js/farbtastic.js"></script>
<link rel="stylesheet" href="../css/farbtastic.css" type="text/css" />
<div id="colorpicker" style="margin: 0 auto;"></div>
<script language="javascript">
function cutHex(h) {return (h.charAt(0)=="#") ? h.substring(1,7) : h}
$('#colorpicker').farbtastic(function(color) {
$.get("/objects/?object=RGB_Corridor&op=m&m=setColor&color="+cutHex(color));
});
$.farbtastic("#colorpicker").setColor("#%RGB_Corridor.color%");
</script>