Code: Select all
var col = getElementsByAttribute(color);
//removes the "#" and turns the value of col into an integer
for(x in col)
if((col[x] <= 202020 && col[x] >= 202000) || (col[x] <= 200020 && col[x] >= 200000) || (col[x] <= 002020 && col[x] >= 002000) || (col[x] <= 000020 && col[x] >= 000000))
I'm absolutely not sure how correct this is, so I'm asking here to have someone look this over and correct me where possible.
Thanks in advance.