Revision history [back]

click to hide/show revision 1
initial version

asked 2018-04-09 10:02:44 +0800

elanyerth gravatar image elanyerth

How can I make a button change its image by clicking on the same button?

How can I make a button change its image by clicking on the same button?

How can I make a button change its image by clicking on the same button?

How can I make a button change its image by clicking on the same button?

<zk>
    <window >
        <button id="boton" image="/imagen/likecora.png" label="change color" onClick='Clients.evalJavaScript("cambiar()")' >
            <attribute name="onClick"><![CDATA[ boton.setImageContent("/imagen/likerojo.png");]]>
            </attribute>
         </button>
    </window>
</zk>
Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More