> On 07/14/09 15:33, Jim Walker wrote:
>> contains this javascript:
>> http://opensolaris.org/os/communities/lead_reference/contributors.js
I was hoping to have time to dig into that script and add the
following pseudocode ...
# col_6 is the expire date
if (to_days(col_6) < to_days(today) ) { # Expired!
color="red"
} else if (to_days(col_6) < (to_days(today) + 60) { # expires soon!
color = "yellow"
} else {
color = "black" # default
}
...
if (type == 30) {
content += '<td color=' + color + '>' + user.col_6 + "</td>";
}
... but I didn't get past needing the date manipulation functions to
make something work in javascript....
-John
_______________________________________________
website-discuss mailing list
[email protected]