[Laszlo-dev] Modifying CSS on images in view.sprite.__LZdiv.innerHTML

Raju Bitter rajubitter at me.com
Sun Aug 23 13:28:08 PDT 2009


If we want to support drop shadows for images (transparent PNG with  
drop shadow, see the attached screenshot), I need to be able to modify  
the CSS of an image attached to a view.

Right now the image class is set to
<img class="lzimg" src="OpenLaszlo.png">

Is there any programmatic way to attach CSS to the image object? Guess  
not. If you wonder, have a look at the attached screenshot. On the  
left side is a Flash DropShadowFilter applied to a view, which has a  
transparent PNG as resource. On the right side is the same code in  
DHTML, but the shadow is attached to the view containing the PNG  
instead.

If we only want to support drop shadows on views and not on images,  
that's ok. But having the support for images is much more powerful.  
Text drop shadow support in  DHTML is a different feature which we can  
implement, but I think the image based dropshadow is need as well.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: Transparent-PNG-DropShadow.png
Type: image/png
Size: 40398 bytes
Desc: not available
Url : http://www.openlaszlo.org/pipermail/laszlo-dev/attachments/20090823/990ced78/Transparent-PNG-DropShadow-0001.png
-------------- next part --------------



More information about the Laszlo-dev mailing list