Re: Cannot get this one correct and working, though simple!



Jofio 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>

           }
        }
?>



This should work perfectly well.. Check the left frame source - the <img> tags should have thumbs as sources. If they do, check the size of the thumb files - perhaps, they are large?


luph
.



Relevant Pages

  • Re: Photo Gallery
    ... I basically just looped through my images and dropped each one into a new ... > images and display thumbnails. ... > As far as huge photos are concerned, I can check the size at upload time ...
    (microsoft.public.dotnet.framework.aspnet)
  • Tile TreeView -- embedded images ...
    ... I've found that a Tk_Table was a great way to display thumbnails ... ... but the tile TreeView has a funky tabular mode of display which allows a very convenient tree/table with embedded widgets. ... As far as working with the ttk::treeview manpage, it is very good, as far as it goes, but I'm having difficulty in sizing the rows displayed to accommodate the thumbnails. ... Basically I just need to change the row height to accommodate the images. ...
    (comp.lang.tcl)
  • Re: How to see picture files with there names attached
    ... File and folder names are missing in Thumbnail View. ... This is a feature that allows for more thumbnails to be displayed on the ... hold down the Shift key and click ... I can get six columns and four full rows to display with the ...
    (microsoft.public.windowsxp.customize)
  • Re: Mousover link thumbnail breaks list up
    ... I also used display: none/block ... and John for comments. ... and sometimes the thumbnails 'stick ... Here is the CSS for the list item thumbnails ...
    (comp.infosystems.www.authoring.stylesheets)
  • Re: Allowed memory size exhausted
    ... in my getimage.php i want to resize my images to display them as ... I know this problem if the memory limit is set to 8 MB but what the ... One more note - why don't you cache your thumbnails? ...
    (comp.lang.php)