Announcement

Collapse
No announcement yet.

Is this possible

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Is this possible

    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>"

    #2
    I don't believe this is possible. I have been trying for a while and can't figure out a way. The colors can obviously be changed on the devices page, but the not status or "Quickview".

    -Tom

    Visit my HomeSeer at http://68.55.67.82:81 (New Guest Downloads!)
    -Tom

    Visit Kernhome
    Kern Theater Gallery

    (User: guest / Pass: guest)

    Comment


      #3
      Al,

      If you just want to just change the text font color, add a font tag to strVar:

      strVar = "<font color=green>On</font>"
      strVar = "<font color=red>Off</font>"

      if you want it to use the same cell color scheme that the built in stat page uses, then change the cell class:

      if hs.DeviceValue("[5") > 0 then
      strVar = "On"
      strClass = "tablecellon"
      else
      strVar = "Off"
      strClass = "tablecelloff"
      end if
      response.write "<td class='" & strClass & "' align='center' cellspacing='0' cellpadding='0'>"
      response.write strVar & "</td></tr>"


      Paul

      Comment

      Working...
      X