473,385 Members | 1,769 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

What is nn#RRGGBB format?

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];
}
}
Jul 20 '05 #1
2 3270

"chirs" <ym*@kicon.com> schreef in bericht
news:4c**************************@posting.google.c om...
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:


In the snippet, nn is matched with a regular expression to set the speed of
the fade effect achieved by the script.

In other words: it is specific for this script.
JW

Jul 20 '05 #2
ym*@kicon.com (chirs) writes:
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:
Read the comments:
// The ItemStyle 'nn#RRGGBB' fading speed format: use a regex to
match it.


It is used internally in the script. The nn appears to be the fading
speed.

/L
--
Lasse Reichstein Nielsen - lr*@hotpop.com
DHTML Death Colors: <URL:http://www.infimum.dk/HTML/rasterTriangleDOM.html>
'Faith without judgement merely degrades the spirit divine.'
Jul 20 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Hon Seng Phuah | last post by:
Hi all, I have a huge excel format file wants to export to sql server database. One of the field has combination of numeric and alphanumeric. When I import the excel format to sql server...
0
by: Don | last post by:
Hi, When passing serialized object's XML from ASP.NET to a SQL Server 2k sproc, what format should I have the text in? Here's my XML: <ArrayOfEmployee...
2
by: Ray | last post by:
I am entering dates in to form using the dd/mm/yy format, however I am using a SQL which involves searching for those dates. I have formatted the dates in the SQL ot the US format of mm/dd/yy as...
5
by: siliconwafer | last post by:
Hi All, What does a 'format specifier' do? Suppose I do, int a = 43; //decimal number printf("%x",a); I will get hex equivalent of 43. Does the format specifier do an implicit "decimal to hex"...
1
by: Lee810 | last post by:
The xml doc has pictures but in the format of a very long character string. I'm not sure what this format is called so I do not know what type of converter I should be looking for. May have...
2
by: KR | last post by:
I am trying to copy the data in excel file into a table using the bcp and this is the code that I have. However the bcp utility does not seem to create a format file, which I thought it should...
11
by: zsolt | last post by:
Hi, I'm trying to convert a string to date by specifying the format. The value is like this: "03rd of April 2006". Now this is converted fine by using the following format: "dd\r\d \o\f MMMM...
8
by: coachdave | last post by:
Hi all. I am trying to write a cookie onto the client that I want to last for 1 month. I have been using <% ....... var hdata= ; exdate=new Date; exdate.SetMonth(exdate.GetMonth()+1);...
14
by: | last post by:
Hi, I program in asp.net. I have a date in TextBox in format "dd/MM/yyyy". I would like to validate if the date is realy correct. I used RegularExpressionValidator with...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.