Announcement

Collapse
No announcement yet.

Changing the text color of a variable

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

    Changing the text color of a variable

    I am trying to change the color of the text displayed on the HS web page from a script.

    hs.setdevicestring "V2","<img src=""temperature.gif"" align=""absmiddle""><span style=""color:#000000; ""> Processor temperature: </span>" & temp1,true

    I can get the text before the variable to turn black but how do I change the color of the variable temp1?


    Thanks,

    Jon
    Jon


    #2
    hs.setdevicestring "V2","<img src=""temperature.gif"" align=""absmiddle""><span style=""color:#000000; ""> Processor temperature: " & temp1 & "</span>",true

    Jeff Farmer

    --
    Jeff Farmer
    HS 3, HSPhone
    My HS3 Plugins: CFHSExtras, Random, Restart, Tracker, WeatherXML, PanaBluRay
    Other Plugins In Use: APCUPSD, BLOnkyo, Device History, EasyTrigger, HSTouch Server, PHLocation2, Pushover, RFXCom, UltraGCIR3, UltraMon3, UltraPioneerAVR3, X10, Z-Wave

    Hardware: GoControl Irrigation Controler, Schlage Lever Lock, Schlage Deadbolt, Way2Call Hi-Phone, RFXCom RFXrec433 Receiver, WGL 800, TI-103, Z-Net, Pioneer 1120, Pioneer 1021, Pioneer LX302, Panasonic BDT-110, Panasonic BDT-210 x2

    Comment


      #3
      Thanks Jeff,

      That worked great!

      Jon
      Jon

      Comment

      Working...
      X