|
Posted by Pascal Herczog on 11/03/05 21:25
"Jonathan N. Little" <lws4art@centralva.net> wrote in message
news:g2gaf.1062$ZA3.248933@monger.newsread.com...
> Pascal Herczog wrote:
>> I have a page containing 2 frames, the top has a table of hyperlinks,
>> which, if you click on them, each show a different picture in the bottom
>> frame (i.e. target base is set to "bottom").
>>
>> e.g., in the top frame, a table data entry would be:
>> <td width="25%"><a
>> href="../My%20Jokes/Pictures/airplane.jpg">Airplane</a></td>
>>
>> What I would like to do is constrain the size (width, height) of the
>> actual picture shown in the bottom frame when the user clicks on the text
>> "Airplane". I have seen plenty of examples setting width etc when the
>> hyperlink itself is a picture, but I can't see how to set the
>> width/height attributes in this case. Hence I end up with a picture that
>> doesn't fit into the bottom frame, which spoils the effect. As I've got
>> loads of pictures, I don't really want to have to resize them all
>> manually first.
>
> Well actually your should! Images at resolutions meant for printing
> (thousands of pixels on a side) are not really suitable for use on the web
> where 600 pixels is pretty damn big! Constraining with HTML does nothing
> to reduce the large files size of such images so the whole file must be
> downloaded, a real pain on dialup and a real waste of bandwidth
>
> Try something like IrfanView freeware that can batch size images
> http://www.irfanview.com/
Thanks.
The picture files are not that big to start with, but resizing might be the
only option it seems. I have no real experience of java scripts (except a
few bits I've borrowed from examples), and it looks like the table
data/anchor syntax does not support setting a size for target jpg (???).
I've tried adding a width parameter but it has no effect.
Pascal.
Navigation:
[Reply to this message]
|