Help - Search - Members - Calendar
Full Version: div style and background-color
HTMLHelp Forums > Programming > Client-side Scripting
skiv71
hi,

i'm using the div style etc to position some text, in a box precisely on the screen. i can do this ok, but i wonder, instead of specifying the actual color ........ [background-color: #0fffff; etc can i replace the #0ffff etc with a define variable which is define earlier on in the page.

the jist is, i want to change the background color dependant on the comparison of a statement, i.e. true or false or compare for integer based comparisons.

i'm doing the comparison stuff using javascript.

thanks

neil
pandy
In JavaScript? Yes, why not.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2010 Invision Power Services, Inc.