div style and background-color |
div style and background-color |
skiv71 |
Jul 23 2007, 04:26 PM
Post
#1
|
Group: Members Posts: 2 Joined: 23-July 07 Member No.: 3,421 |
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 |
Jul 23 2007, 05:01 PM
Post
#2
|
🌟Computer says no🌟 Group: WDG Moderators Posts: 20,734 Joined: 9-August 06 Member No.: 6 |
In JavaScript? Yes, why not.
|
Lo-Fi Version | Time is now: 8th May 2024 - 06:00 AM |