Topic awaiting preservation: Calculating colors |
|
---|---|
Author | Thread |
Bipolar (III) Inmate From: Belgium |
posted 10-29-2002 14:03
Does anyone know how I can calculate colors in javascript? Suppose all my website colors are collected in one stylesheet. I want every row of my table to be a bit lighter then my background color, whatever that color may be. So I'm looking for something that can retrieve the background color of an element like a number and use it to calculate my new color? |
Paranoid (IV) Mad Scientist From: Somewhere over the rainbow |
posted 10-29-2002 14:19
The poster has demanded we remove all his contributions, less he takes legal action. |
Bipolar (III) Inmate From: Belgium |
posted 10-29-2002 15:23
The calculation part looks ok for me, thanks alot. The only thing I (still) don't know is how do I get the background color of an element, knowing that this color is defined in a stylesheet? Which method/property or whatever do I use? |
Maniac (V) Inmate From: Brisbane, Australia |
posted 10-29-2002 15:44
There are several ways to do this depending on the element type and browser. |
Maniac (V) Mad Scientist with Finglongers From: Cell 53, East Wing |
posted 10-29-2002 19:07
Added to FAQ: |