C
Carol V.
I have made a couple of gallery pages using a script from
http://javascript.internet.com/miscellaneous/gallery-viewer.html
One page is fine. The photos were taken in normal "landscape" view. I have
resized the original photos to w=500 x h=374. On the second page, 2 of the
photos were taken in "portrait" view. They were resized to w=500 x h=668.
I realize the problem is with the set width of the "mainpic" tag. Is there
a way to make this tag variable? Where it would automatically adjust to the
size of the photo?
Here is a copy of the code used.
<table width=500 border=0 cellspacing=0 cellpadding=0>
<tr>
<td colspan=4 align=center>
<img name="mainpic" src="p1.jpg" width=500 height=374 border=0></td>
<tr>
<td><a
href="javascript:doPic('Images/AQUAMOONAQUARIUMS_Bass_Pro_Shop_MAIN_1.JPG');"><img
src="Images/AQUAMOONAQUARIUMS_Bass_Pro_Shop_MAIN_1.JPG" width=100 height=75
border=0></a></td>
<td><a
href="javascript:doPic('Images/AQUAMOONAQUARIUMS_Bass_Pro_Shop_MAIN_2.JPG');"><img
src="Images/AQUAMOONAQUARIUMS_Bass_Pro_Shop_MAIN_2.JPG" width=100 height=75
border=0></a></td>
<td><a
href="javascript:doPic('Images/AQUAMOONAQUARIUMS_Bass_Pro_Shop_MAIN_3.JPG');"><img
src="Images/AQUAMOONAQUARIUMS_Bass_Pro_Shop_MAIN_3.JPG" width=100 height=75
border=0></a></td>
<td><a
href="javascript:doPic('Images/AQUAMOONAQUARIUMS_Bass_Pro_Shop_MAIN_4.JPG');"><img
src="Images/AQUAMOONAQUARIUMS_Bass_Pro_Shop_MAIN_4.JPG" width=100 height=75
border=0></a></td>
</tr>
<tr>
<td><a
href="javascript:doPic('Images/AQUAMOONAQUARIUMS_Bass_Pro_Shop_MAIN_5.JPG');"><img
src="Images/AQUAMOONAQUARIUMS_Bass_Pro_Shop_MAIN_5.JPG" width=100 height=75
border=0></a></td>
<td><a
href="javascript:doPic('Images/AQUAMOONAQUARIUMS_Bass_Pro_Shop_MAIN_6.JPG');"><img
src="Images/AQUAMOONAQUARIUMS_Bass_Pro_Shop_MAIN_6.JPG" width=100 height=75
border=0></a></td>
</tr>
</td>
</table>
</center>
Thanks
http://javascript.internet.com/miscellaneous/gallery-viewer.html
One page is fine. The photos were taken in normal "landscape" view. I have
resized the original photos to w=500 x h=374. On the second page, 2 of the
photos were taken in "portrait" view. They were resized to w=500 x h=668.
I realize the problem is with the set width of the "mainpic" tag. Is there
a way to make this tag variable? Where it would automatically adjust to the
size of the photo?
Here is a copy of the code used.
<table width=500 border=0 cellspacing=0 cellpadding=0>
<tr>
<td colspan=4 align=center>
<img name="mainpic" src="p1.jpg" width=500 height=374 border=0></td>
<tr>
<td><a
href="javascript:doPic('Images/AQUAMOONAQUARIUMS_Bass_Pro_Shop_MAIN_1.JPG');"><img
src="Images/AQUAMOONAQUARIUMS_Bass_Pro_Shop_MAIN_1.JPG" width=100 height=75
border=0></a></td>
<td><a
href="javascript:doPic('Images/AQUAMOONAQUARIUMS_Bass_Pro_Shop_MAIN_2.JPG');"><img
src="Images/AQUAMOONAQUARIUMS_Bass_Pro_Shop_MAIN_2.JPG" width=100 height=75
border=0></a></td>
<td><a
href="javascript:doPic('Images/AQUAMOONAQUARIUMS_Bass_Pro_Shop_MAIN_3.JPG');"><img
src="Images/AQUAMOONAQUARIUMS_Bass_Pro_Shop_MAIN_3.JPG" width=100 height=75
border=0></a></td>
<td><a
href="javascript:doPic('Images/AQUAMOONAQUARIUMS_Bass_Pro_Shop_MAIN_4.JPG');"><img
src="Images/AQUAMOONAQUARIUMS_Bass_Pro_Shop_MAIN_4.JPG" width=100 height=75
border=0></a></td>
</tr>
<tr>
<td><a
href="javascript:doPic('Images/AQUAMOONAQUARIUMS_Bass_Pro_Shop_MAIN_5.JPG');"><img
src="Images/AQUAMOONAQUARIUMS_Bass_Pro_Shop_MAIN_5.JPG" width=100 height=75
border=0></a></td>
<td><a
href="javascript:doPic('Images/AQUAMOONAQUARIUMS_Bass_Pro_Shop_MAIN_6.JPG');"><img
src="Images/AQUAMOONAQUARIUMS_Bass_Pro_Shop_MAIN_6.JPG" width=100 height=75
border=0></a></td>
</tr>
</td>
</table>
</center>
Thanks