Reply to Re: thumbnails as links...?

Your name:

Reply:


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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация