krommetje Super User
Joined: December 29 2004 Location: Netherlands
Online Status: Offline Posts: 695
|
Posted: August 18 2007 at 02:42 | IP Logged
|
|
|
This is a form which executes a Macro and will change it's buttoncolor according to the status of the device:
Remember to change the X10STATK2 to your own settings!
Code:
<form method="get" action="/ph-cgi/playmacro">
<input type="hidden" name="id" value="<YOUR MACRO HERE>">
<input type="hidden" name="nexturl" value="/test.psp">
<input type="submit" value="<YOUR MACRONAME HERE>" style="color: <% if( [X10STATK2] = 1, 'Black', 'Yellow') %>; font-style: normal; font-family: verdana; font-weight: normal; font-size:16px; background-color: <% if( [X10STATK2] = 1, 'White', 'blue') %>">
</form>
|
|
|
|