I've done this in javaScript:
Change text color based on value e.g.,
if (parseFloat(document.getElementById(f_delta_1st).value) > 0){
document.getElementById(f_delta_1st).style.color="green";
}
========
Now my ASP is reading these "number" datatypes and I would like to color them red or green based on +/- value.
<% Response.Write objRS("f_delta_1st") %>
Change text color based on value e.g.,
if (parseFloat(document.getElementById(f_delta_1st).value) > 0){
document.getElementById(f_delta_1st).style.color="green";
}
========
Now my ASP is reading these "number" datatypes and I would like to color them red or green based on +/- value.
<% Response.Write objRS("f_delta_1st") %>