image swaps

G

Guest

I am doing image swaps in the same table cell. In a previous thread I was
told that the images that are swapped in the same cell become the same size
as the original image in that cell. But that causes my images to be distorted
since the size of the images is being reduced (which is OK), but the aspect
ratio does not appear to be retained.

Any suggestions! Thanks, Nina
 
M

Murray

You can do this many ways ways -

1. Don't use swap image - use Show/Hide layer instead. Have the alternate
image in a hidden layer that is shown when the trigger is 'tickled'. Using
this method you can have images that are any dimension.

2. Use swap image, but remove the dimensions from the original image's tag,
i.e., change this -

<img name="original" width="150" height="220" ...

to this -

<img name="original" ...

Now when you swap in your offsize image, there is no predefined size to
change it to. Be aware that this method may well result in an unpleasant
and undesirable 'rearrangement' of your page layout as it adjusts to your
new image's dimensions.

3. Pad the smaller image with canvas background color on all sides so that
all the images *are the same size*.

4. Use a SetTextofLayer behavior to change the image reference in a layer
positioned so that it will show the desired larger image in the proper
place.

Take your pick....
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top