Solved: 1 Year, 2 Months, 3 Weeks ago Like possitive or natural
#1
Solved: 1 Year, 2 Months, 3 Weeks ago
Hello there,
I want to change likes number on postbit_classic
When someone got 0 likes the number 0 will be white
when he got 1 or more the number will be green
Like the reputation number Toungue

I find this code on some other website but I dont know how that works and where to put that Toungue
function dif_day(data) {
         val = data[0]
         var day= [];
         day.push(val.DAY_DIFF);

         if (day[0] >= 0) {
            $('#span_day_diff').empty().append("+ " + day.join()); 
            $('#span_day_diff').style.color = 'green';
         } else {
            $('#span_day_diff').empty().append(day.join()); 
            $('#span_day_diff').style.color = 'red';
         }

       };

thank you
[Image: banner.gif]
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)