[thelist] Simple code for thumbnail imagemap?
Kevin Martin
evolt at brasscannon.net
Mon Jul 16 20:22:07 CDT 2001
I wrote:
> > I have a 'contact sheet' of thumbnails, which I turned into a
> > client side image map with "MapThis!" It works okay having each
> > thumbnail simply bring up the associated full-size image, but
> > I'd like to "wrap" them by creating a common .html file where
> > I could set a bgcolor, add a "back" button, etc.
To which Martin replied:
> One issue that immediately leaps to mind is that you would have to
> ensure that your contact sheets are always identical in layout...
Whoops, correct answer but to the wrong question. I have my image
map page, singular. I'm not looking for a general solution to that
problem, at least not yet! (There are full-blown 'photo album' apps
on SourceForge -- they are intimidating as heck.) I have a much
more modest question. Let me explain in more detail.
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.
--
Kevin 'digger' Martin <evolt at brasscannon.net>
More information about the thelist
mailing list