Forum Moderators: open
<iframe src="test.html" height="200" width="500"></iframe>
on test.html put this:
<a href="2.gif"><img src="1.gif" border="0"></a>
where 1.gif is the smaller graphic and 2.gif is the 200x500 graphic
When the viewer clicks on 1.gif, 2.gif will pop up filling the iframe beccause the iframe and it are the exact same size....
hope this helps.
The framed file "show_img.asp":
<%
Dim strFile, strResponse
strFile = Request("fname")
strResponse = "<html><head></head><body>" & vbCrLf
strResponse = strResponse & "<img src=" & Chr(34) & strFile & Chr(34) & _
" height=" & Chr(34) & "$y" & Chr(34) & " width=" & Chr(34) & _
"$x" & Chr(34) & "/>"
strResponse = strResponse & "</body></html>"
%>
The only difficult part is to keep html params "quoted" without these quotes being parsed by the ASP as opening/closing of strings. The call Chr(34) returns a 1-length string with the 34th character in ASCII, which is '"'. Beyond the weird thing of the quotes, I think there is no difficulty on implementing that; even so, if you have any doubt or question, I'll be glad to help you either via reply (generic questions) or sticky mail (if specifics are needed).
Hoping be useful,
Herenvardö