Forums

ASP

This topic is locked

alter disjointed rollover code to accomodate datab

Posted 22 Jun 2008 07:11:42
1
has voted
22 Jun 2008 07:11:42 susan haft posted:
The effect I would like to achieve is that by clicking on a repeat region thumbnail image (first code block) the larger version of the same selected image is viewed concurrently in a different portion of the page(second code block)

THUMBNAIL IMAGE CODE:

<%
While ((Repeat1__numRows <> 0) AND (NOT images.EOF))
%>
<a href="javascript:;" onmouseover="MM_swapImage('largeimage','','largeimage',1)" onmouseout="MM_swapImgRestore()"><img src="imagescript.asp?path=<%=(images.Fields.Item("url_img".Value)%>&Width=36" name="smallimage" border="0" id="smallimage" /></a>
<%
Repeat1__index=Repeat1__index+1
Repeat1__numRows=Repeat1__numRows-1
images.MoveNext()
Wend
%>


LARGER IMAGE CODE:

<img src="imagescript.asp?path=<%=(images.Fields.Item("url_img".Value)%>&Width=250" name="largeimage" id="largeimage" />

Reply to this topic