Re: How to set both height and width of an image?

"Diez B. Roggisch" <[email protected]>
Newsgroups gmane.comp.java.enhydra.barracuda.general
Message-ID <[email protected]>
> <TD><IMG src="foo.gif" alt="" width="120" height="20"
> class="Dir::get_data.HeadFoot.Image1.width" border="0"></TD>
>
> In the above code, is there a way that I can set both width and the height
> of the image dynamically?
>
> Any pointers would be highly appreciated.

Barracuda evaluates an arbitrary number of space-separated directives in the 
class-attribute. So you can do it like this:

<IMG src="foo.gif" alt="" width="120" height="20" 
class="Dir::set_attr.HeadFoot.ImageWidth.width 
Dir::set_attr.HeadFoot.ImageHeight.height" border="0">

I'm not totally sure about the format of the directive, but its close 
enough :)

Diez
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.