Announcement

Collapse
No announcement yet.

can one button be used for "on" and "off"?

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

    can one button be used for "on" and "off"?

    This gives me the on and off buttons that work and shows an icon that when clicked or double clicked changes from an on light bulb to an off light bulb.
    I would like to see the two combined to that all I see is the light bulb icon. When it is clicked it caused the on off script to work.
    If this is impossible can a gif picture be assigned to the face of the button instead of the words "bedroom light".
    This is to work with Homeseer a home automation software.



    <html>

    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
    <meta name="GENERATOR" content="Microsoft FrontPage 4.0">
    <meta name="ProgId" content="FrontPage.Editor.Document">
    <title>New Page 1</title>
    </head>

    <body>

    <form method="POST">
    <p><input type="hidden" name="control_device" value="bedroom bed light=on"> <input
    type="submit" value="Bedroom Light" name="control_device"></p>
    </form>
    <form method="POST">
    <p><input type="hidden" name="control_device" value="bedroom bed light=off"> <input
    type="submit" value="Bed Lights Off" name="control_device"></p>
    </form>
    <font face="verdana, arial, helvetica" size="2"><input name="B1" type="image"
    src="light_on.gif" onclick="B1.src='light_off.gif'"else
    ondblclick="B1.src='light_on.gif'" width="25" height="32"></font>

    </body>

    </html>

    #2
    Search on HACT. I have many functions for buttons and such that will do what you want.

    enjoy.

    --
    Aaron

    Comment

    Working...
    X