Is it possible to change the font color for "On" and "Off" here in this example?
response.write "<tr>"
response.write "<td class='tablerowodd' align='absmiddle' width='150'>Polaris 280 Cleaner</td>"
if hs.DeviceValue("[5") > 0 then
strVar = "On"
else
strVar = "Off"
end if
response.write "<td class='tablecellcustom' align='center' cellspacing='0' cellpadding='0'>"
response.write strVar & "</td></tr>"
response.write "<tr>"
response.write "<td class='tablerowodd' align='absmiddle' width='150'>Polaris 280 Cleaner</td>"
if hs.DeviceValue("[5") > 0 then
strVar = "On"
else
strVar = "Off"
end if
response.write "<td class='tablecellcustom' align='center' cellspacing='0' cellpadding='0'>"
response.write strVar & "</td></tr>"
Comment