|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| ||||||||||||||||||||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Ok, im new to asp code, entirely. Here is what I want to do.
1. Page with thumbnails linked to an iframe that will display the larger images. 2. Not have to make a separate page for each larger image. So I have looked around and using an asp page as a template seems to be the way, but I can't find the code for this, at all. Anyone know a simple show image code? |
|
#2
|
||||
|
||||
|
Your nav page would have links which would have the iframe as the target, and pass the filename of the image to be displayed in the querystring. e.g. <a href="showimage.asp?img=bob.jpg" target="theIFrame">Bob Smith</a>
Then, your iframe page (showimage.asp) would just grab the image filename out of the URL, and display the image, like this: Code:
<%
varImg = request.querystring("img")
response.write("<img src=""images/" & varImg & """>")
%>
|
![]() |
| Viewing: Dev Articles Community Forums > Programming > ASP Development > asp show image |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|