Forum Moderators: open
My current problem deals with a scroll bar in a table cell. The table holds an image gallery and is made up of three columns. Left column is site navigation bar, middle is full size image and right is thumbnails with a vertical scroll bar. The images are loaded dynamically from urls in a MySQL database. There are two recordsets on the page, one for the full image so it can be filtered to the one image using a URL parameter from a link tied to the thumbnails. The second recordset is for the thumbnails to allow all to be displayed in a repeating region. So far everything works beautifully....except whenever I load a new full size image by clicking on a thumbnail the scroll bar returns to the top. Seeing as how there are currently 70 images in the gallery this can get quite annoying. Is there a way to hold the scroll bar in place when the page is loaded with a new URL parameter for the main image?
Thanks in advance,
David
If it helps, here is the code for the cell is question.
<td width="105" rowspan="6"><div style="height:455px; width:100px; overflow:auto;">
<%
While ((Repeat1__numRows <> 0) AND (NOT rsthumbs.EOF))
%>
<table width="30">
<tr>
<td><a href="index.asp?Image_ID=<%=(rsthumbs.Fields.Item("Image_ID").Value)%>#1"><img src="<%=(rsthumbs.Fields.Item("Thumbnail_Path").Value)%>" border="0"></a></td>
</tr>
</table>
<%
Repeat1__index=Repeat1__index+1
Repeat1__numRows=Repeat1__numRows-1
rsthumbs.MoveNext()
Wend
%></div></td>
<Sorry, no personal URLs.
See Terms of Service [webmasterworld.com]>
[edited by: tedster at 8:16 pm (utc) on April 29, 2005]