Hi,
The color is represented by #RRGGBB format. On a javascript sample,
it uses nn#RRGGBB format. What does nn mean? Here is the sample
codes:
(1)
var button = new ItemStyle(22, 1, '>', -15, 2, '10#006633',
'10#CC6600', 'buttonText', 'buttonHover',
'buttonBorder', 'buttonBorderOver', 80, 95, 'crosshair', 'default');
(2)
// For the colour fading, pull properties out of the nn#RRGGBB format
colours.
aI.timer = aI.count = 0;
aI.fade=[];
for(var i=0;i<2;i++)
{
// Set oC to the name of the property to check, either 'outCol' or
'overCol'.
var oC = i ? 'overCol' : 'outCol';
// The ItemStyle 'nn#RRGGBB' fading speed format: use a regex to
match it.
if (aI[oC].match(/^(\d+)\#(..)(..)(..)$/))
{
// Reset the outCol and overCol values to normal for the
div-writing routines.
aI[oC] = '#' + r.$2 + r.$3 + r.$4;
// Then store a subarray of fade speed and 3 hex colour calues if
detected.
aI.fade[i] = [r.$1, r.$2, r.$3, r.$4];
}
}