i am very new to asp, so forgive me if the answer to this question is obvious.
i have an asp page that queries an access database. the page has thumbnail images. i want the user to be able to click the thumbnails on the page and have a popup of a larger image appear. not all thumbnails have images so ive used if then else statements.
im not sure what im doing wrong. any advice would be greatly appreciated.
<script>
function MM_openBrWindow(theURL,winName,features) { //v2.0 window.open(theURL,winName,features);
}
</script>
If
rsReadDetail("lgImage") = "" or IsEmpty(rsReadDetail("lgImage")) or IsNull(rsReadDetail("lgImage"))
then
Response.Write ("<img src='images/")
Response.Write (rsReadDetail("Image"))
Response.Write ("' border='0' align='absbottom'>")
Else
' if lgImage, write hyperlink to it.
Response.Write ("<a href='#' onClick='MM_openBrWindow('images/")
Response.Write (rsReadDetail("lgImage"))
Response.Write("','','scrollbars=yes,resizable=yes,width=200,height=300')'>")
Response.Write ("<img src='images/")
Response.Write (rsReadDetail("Image"))
Response.Write ("' border='0' align='absbottom'>")
Response.Write ("</a>")
End If
i have an asp page that queries an access database. the page has thumbnail images. i want the user to be able to click the thumbnails on the page and have a popup of a larger image appear. not all thumbnails have images so ive used if then else statements.
im not sure what im doing wrong. any advice would be greatly appreciated.
<script>
function MM_openBrWindow(theURL,winName,features) { //v2.0 window.open(theURL,winName,features);
}
</script>
If
rsReadDetail("lgImage") = "" or IsEmpty(rsReadDetail("lgImage")) or IsNull(rsReadDetail("lgImage"))
then
Response.Write ("<img src='images/")
Response.Write (rsReadDetail("Image"))
Response.Write ("' border='0' align='absbottom'>")
Else
' if lgImage, write hyperlink to it.
Response.Write ("<a href='#' onClick='MM_openBrWindow('images/")
Response.Write (rsReadDetail("lgImage"))
Response.Write("','','scrollbars=yes,resizable=yes,width=200,height=300')'>")
Response.Write ("<img src='images/")
Response.Write (rsReadDetail("Image"))
Response.Write ("' border='0' align='absbottom'>")
Response.Write ("</a>")
End If