[thelist] Simple code for thumbnail imagemap?

Michele Foster michele at wordpro.on.ca
Mon Jul 16 21:11:14 CDT 2001


Kevin,

Do you have ASP or another server-side language available to you?

>From what I've read, it sounds like to me what you want to do is have a
query string like such:

<a href="../images/showpage.asp?pic=1">

Then in your showpage.asp file, you will need to request the parameters from
the query string in order to be able to use them.. such like this:

.. whatever html you want...

<%
Dim pic
pictoshow = Request.Querystring("pic")
%>

Now, you will have the value that was passed from the previous page as
"pictoshow"

So, this line <img src="./" + $PARAMETER" + ".jpg"><br>

will now become:

<%
Response.write "<img src=""./" & pictoshow & ".jpg"">
%>


There are other ways to do this no doubt.  This is just an option that will
work in ASP.  I have all of my parameters in a db that is calling the
information based on what pic # is passed in the query string, and then the
pics are displayed accordingly.

Holler if you need any help with ASP.  That's all I know.  ;)

Good luck,

Michele



| My index.html has a bunch of links that look like this:
|
| <AREA SHAPE=RECT COORDS="31,6,87,70" HREF="./pic1.jpg">
|
| I would like to change all those HREFs to something like:
| ...HREF="./show.html?pic1">  Why?  The idea is that show.html
| does a few nice things in addition to simply displaying the
| image, e.g.:
|
|   <body bgcolor=black>
| <!--- could pass a second param to vary bgcolor or even set a
| wallpaper matte... if I knew how to act on passed params!  --->
|   <hr><center>
|   <img src="./" + $PARAMETER" + ".jpg"><br>
|   <font color="gray">Copied right 2001 Me Myself and I</font><hr>
|   <a href="./index.html"><img src="goback.gif" alt="Return"></a>
|
| I only have to do this once assuming I find out how to get from
| ?pic1 in the invocation to $PARAMETER.  That is my question!
|
| I don't know how to do that.  It's just a bit beyond the books
| I have available to me.  Sorry if it seems trivial; given an
| example I think I could turn this into a nice intermediate
| tutorial.






More information about the thelist mailing list