<canvas height="20" width="100%"> <view id="myView" onclick="setAttribute('opacity', 1.5 - this.opacity)" bgcolor="red"> <text text="${'My opacity is ' + myView.opacity + 'x Click to change it.'}"/> </view> </canvas> <!-- * X_LZ_COPYRIGHT_BEGIN *************************************************** * Copyright 2007, 2008 Laszlo Systems, Inc. All Rights Reserved. * * Use is subject to license terms. * * X_LZ_COPYRIGHT_END ****************************************************** -->