You are here: Re: Cannot get this one correct and working, though simple! « PHP Programming Language « IT news, forums, messages
Re: Cannot get this one correct and working, though simple!

Posted by Gleep on 10/07/64 11:36

I wrote something last year that sort of does what you want see this for example

http://www.allelsefailedind.com/2005/gallery.php

it's a gallery in frame and you click on the thumb and it shows the larger one on the right.
I have 400 images and they are all in a folder, then I used a tool thumbnail express to
create the thumbs for the frame, then I used some php to make the thing work
if you need more detailed explanation and example write me at
jasgleep@hotmail.com




On 29 Dec 2005 22:31:34 -0800, "Jofio" <j9k22000@yahoo.com> wrote:

>I have 40 or jpeg files which I want them displayed in a frame called
>"main" upon clicking thumbnails of the same pics in a "leftMenu" frame.
>The thumbnail jpeg files are called thumb1, thumb2, thumb3, thumb4,
>..., thumb40. These files are smaller versions (50pixelX50pixel) of the
>larger jpeg files called 1, 2, 3, 4, ..., 40 which I want them
>displayed.
>
>To display the hyperlinked thumbnails in the "leftMenu" frame I have it
>in a loop. [See the code snippet]
>
>But my problem is that part of the code ...<img src='thumb$i.jpg'> ...
>
>It doesn't display the intended thumbnail jpeg files; instead, it
>display the larger version of the files as thumbnails which takes
>longer to load.
>
>Here's my loop:
>
><?php
> for ( $i = 1; $i < 40; $i++) {
> if ($i!=17) {
> echo "<a href='$i.jpg' target='main'><img src='thumb$i.jpg'></a>
>
> }
> }
>?>
>
>Any help? Many thanks in advance.
>
>
>jofio

 

Navigation:

[Reply to this 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

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