Change color based on the score
-
I am using thumbs Up/Down.
I want to set the color green if the score is greater than 60. The color red if the score is less than 60.I tried this code , but it is incomplete . You know how?
$colore="<b style=\"color:#00FF00 ;\">";//green text if($post_ratings_percentage < 60){ $colore="<b style=\"color:#FF0000 ;\">";//red text }
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Change color based on the score’ is closed to new replies.