I have a script that generates a thumbnails of all the images in a givin' directory. This thumbnail is also a link to the full size image.
My problem is, I would MUCH prefer if this link, was a target blank, or 'open in a new window'. I cannot figure it out.
I think this is the area of the code that I have to edit:
if ($useAutoThumbnails && $f["filetype"]=="image") {
$f["thumbnail"] = "<a href=\"".urldecode($f["link"])."\"><img src=\"".$PHP_SELF."?thumbnail=".urlencode($path.$f["name"])."\" style=\"text-align: left;\" alt=\"\"/></a>";
}
I'm not positive though as there are so many calls for 'thumbnail'.
Any help appriciated.