-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3693690
By: nobody
Hi,
Is it possible to change an image when I click over? For exemple,when I click on an image "+" it become "-"
thanks?
Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3693752
By: oberinspector
as i believe you can change any attribute of a zul component by program:
<image id="img1" src="/img/sun.jpg" width="10px"/> ...
<zscript>
img1.setSrc("/img/new.jpg")
...
Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3694068
By: henrichen
<image id="img1" src="/img/plus.jpg" width="10px"> <attribute name="onClick"> img1.setSrc("/img/minus.jpg"); </attribute> </image>
Click on the image would trigger the onClick event handler and change the image src from plus.jpg to minus.jpg
/henri
Asked: 2006-04-19 09:53:43 +0800
Seen: 352 times
Last updated: Apr 19 '06