|
Posted by Els on 08/26/05 02:52
Dave B wrote:
> The php code I'm using sets everything up nicely with thumbnails,
> etc., but the thumbnails themselves don't link to a larger pic -
> instead, there's a text link below each thumbnail that says
> "enlarge". I've pasted the code below, and I was hoping one of
> y'all could tell me how to change it so the the thumbnail was the
> link?
This question isn't PHP, but HTML, but anyway:
> $this->column .= "<td><img src=\"$img_src\">\n";
> //in the line below, change "self" to "blank" for a new page
> $this->column .= "<br><a
> href=\"display_large.php?image=".$output[$x]."&gallery=$this->gallery_name\"
> target=\"_self\">enlarge</a>\n";
Change the above to:
//in the line below, change "self" to "blank" for a new page
$this->column .= "<td><a
href=\"display_large.php?image=".$output[$x]."&gallery=$this->gallery_name\"
target=\"_self\"><img src=\"$img_src\">\n";
$this->column .= "<br>enlarge</a>\n";
This will have both the image and the word 'enlarge' clickable.
--
Els http://locusmeus.com/
Sonhos vem. Sonhos vão. O resto é imperfeito.
- Renato Russo -
[Back to original message]
|