View Full Version : HEX, getStyle, junk
victorysshadow
06-22-2005, 05:50 PM
I am having a problem... I am getting a style with getStyle("backgroundColor") and it is spitting out this:
14868688
Is there anyway to convert that into this:
E2E0D0
They should be the same thing.
thx
vs
deadbeat
06-22-2005, 05:58 PM
To convert to hex should be:
myColor=14868688;
hex=myColor.toString(16);
HTH,
K.
Ruben
06-22-2005, 06:01 PM
Could you post up an example (including the css-file) or something?
- Ruben
deadbeat
06-22-2005, 06:06 PM
What do you mean? That is the example...no CSS needed...
K.
Ruben
06-22-2005, 06:38 PM
What do you mean? That is the example...no CSS needed...Sorry for that one deadbeat, apparently you posted right between me hitting the reply-button and me hitting Submit reply...
:) - Ruben
deadbeat
06-22-2005, 07:01 PM
No worries...just part of the confusing nature of asynchronous online communication...
:D
K.
Ruben
06-22-2005, 07:37 PM
No worries...just part of the confusing nature of asynchronous online communication...Yeah, don't you just hate forums and community-boards and stuff?
:D - Ruben
padone
07-22-2005, 10:05 AM
I have this coded colour thing aswell
firstcolour = 11583689;
header1 = 14540253;
headerside = 16777215;
headerselect = 2698287;
headerdeselect = 8163481;
how would i change the colours that are stated above or get it so i can change them to hex ????
Ruben
07-23-2005, 11:13 PM
I have this coded colour thing aswell
firstcolour = 11583689;
header1 = 14540253;
headerside = 16777215;
headerselect = 2698287;
headerdeselect = 8163481;
how would i change the colours that are stated above or get it so i can change them to hex ????
To convert to hex should be:myColor=14868688;
hex=myColor.toString(16);
Doesn't that solve your problem?
:confused: - Ruben
csdstudio
07-24-2005, 01:19 AM
Lol.
padone
07-25-2005, 08:10 AM
all sorted thanx i just put the hex colour into a scientific calculator and then converted it to decimal
|
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.