I want to change the description text to white color FFFFF.
I don't know how to add color style to a .$value, like my script .$value['description'].
Can you help me change the color ?
Code :
Thank you in advance !Code:<script type="text/javascript"> function eventstime(lasttime, repeattime, showid, opentime) { if (lasttime < 0) lasttime = repeattime-1; if (lasttime <= opentime) { document.getElementById(showid).innerHTML = "is Open"; setTimeout('eventstime('+(lasttime-1)+', '+repeattime+', \''+showid+'\', '+opentime+');', 999); } else { var secs = lasttime % 60; if (secs < 10) secs = '0'+secs; var lasttime1 = (lasttime - secs) / 60; var mins = lasttime1 % 60; if (mins < 10) mins = '0'+mins; lasttime1 = (lasttime1 - mins) / 60; var hours = lasttime1 % 24; var days = (lasttime1 - hours) / 24; if (days > 1) days = days+' days + '; else if (days > 0) days = days+' day + '; document.getElementById(showid).innerHTML = days+hours+':'+mins+':'+secs; setTimeout('eventstime('+(lasttime-1)+', '+repeattime+', \''+showid+'\', '+opentime+');', 999); } } </script> <? echo' <table border="0" cellspacing="0" cellpadding="0" width="100%" style="margin-top: 10px;" > <td align="center" class="customRTitle">Events</td></table><div style="height: 5px;"></div> <table border="0" cellspacing="2" cellpadding="2" width="49%" class="customRTable">'; include ("ETconfig.php"); $i = 0; echo ''; foreach ($eventtime as $value) { $i++; $bc_remain = $value['repeattime'] - ((WEBSITE_REAL_TIME - strtotime($value['start'])) % $value['repeattime']); $startevents .= 'eventstime('.$bc_remain.', '.$value['repeattime'].', \'event'.$i.'\', '.$value['opentime'].'); '; echo '<tr id="customRbg" height="25"><td align="center">'.$value['name'].': <span id="event'.$i.'" style="color:#FF6611;"></span><br>'.$value['description'].'</td></tr>'; } echo '<script type="text/javascript">'.$startevents.'</script> <table align ="center" border="0" cellspacing="2" cellpadding="2" width="49%" class="customRTable2">'; $i2 = 1; foreach ($eventtime2 as $value2) { $i2++; $bc_remain = $value2['repeattime'] - ((WEBSITE_REAL_TIME - strtotime($value2['start'])) % $value2['repeattime']); $startevents .= 'eventstime('.$bc_remain.', '.$value2['repeattime'].', \'event2'.$i2.'\', '.$value2['opentime'].'); '; echo '<tr id="customRbg" height="25"><td align ="center">'.$value2['name'].': <span id="event2'.$i2.'" style="color:#FF6611;"></span><br>'.$value2['description'].'</td></tr>'; } echo '<script type="text/javascript">'.$startevents.'</script> </table>'; ?> <style> .customRTable { margin-bottom: 25px; margin-left; float:left; background-color: #222222; border: 1px solid #444444; border-radius:7px; } #customRbg { background-color: #111111; } .customRTitle { padding-top: 3px; padding-bottom: 3px; color: #D5D5D5; margin-top: 15px; font-size: 18px; background-color: #111111; border: 1px solid #444444; border-radius:7px; font-weight:bold; } .customRTable2 { margin-bottom: 25px; float:right; background-color: #222222; border: 1px solid #444444; border-radius:7px; } </style>







