EDIT POST First Post Mark as Spam telisjok
Posts: 1 - Registered: 2012-12-08 09:46:28
i have this code
but somethings wrong and the color doesnt change... any suggestions please?
EDIT POST Reply #2 Mark as Spam joesimmons
Posts: 5 - Registered: 2013-09-06 14:02:57
The problem I see, is that 'x.style' is an object, not a string, so you can't use .match() on it. You should use 'x.style.color'
The problem, then, is that 'x.style.color' usually will return an rgb or rgba value (black is rgb(0, 0, 0) for example).
So, now that you know that, you can check 'x.style.color' for an rgb value, like so: