I am going to do some assuming here,
1 - You want to dynamically build a page of available thumbnails
2 - Present each thumbnail as an IMG or HREF
3 - A user single click would be okay to open the new window
With those assumptions that matter is simple, a line of perl to output
each thumbnail. Something like
print "<A HREF='http://servername/imagefilename' TARGET='NewWindow'><IMG
SRC='thumbnailfilename'></A>"
That would out a link using each thumbnail image being active, and opening
a new browser window for the first image clicked. Then if the new window
is still open when a second image is clicked the second image will replace
the first one in the new window, but if the new window is closed before a
second image is clicked, then clicking a second image will re-open the new
window.
TW
On Thu, 21 Dec 2000, Dan Jablonsky wrote:
> Hi all,
> I need a quick fix for a simple problem:
> I have a perl program that at this time is generating
> some thumbnails on a html page. My next step is to
> open a new browser window by doubleclick or just click
> and show the real size image in this new window. My
> problem is that the source of the image is stored in a
> perl variable ($imgsrc) and I couldn't convert it to a
> valid variable for javascript as "var im= $imgsrc;".
> I've also tried to relate every thumbnail to a
> checkbox with "value=$imgsrc" and then "var im =
> document.form.checkimg.value" and nothing.
> I wonder if there is an easy way to do this using
> javascript or a hint on how to do it with new window
> opened with perl.
> Thanks,
> Dan
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Shopping - Thousands of Stores. Millions of Products.
> http://shopping.yahoo.com/
> _______________________________________________
> Perl-Win32-Web mailing list
> [EMAIL PROTECTED]
> http://listserv.ActiveState.com/mailman/listinfo/perl-win32-web
>
_______________________________________________
Perl-Win32-Web mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/perl-win32-web