need some quick help

They have: 2 posts

Joined: Aug 2005

hi, im new! Roll eyes

i want to know how i could make all images in my "images" directory appear on my homepage "index.php" as thumbnails automatically and when i click on them, they link u to the full size images

thanks for the help!

demonhale's picture

He has: 3,278 posts

Joined: May 2005

Dont do this, making a larger image then auto thumbnailing it is easy but will make your site load longer, better yet make another set of images from the larger pics and make them thumbnail site, post the smaller images on your index page and hyperlink it to the larger version of the image, this way you have a faster index page...

They have: 2 posts

Joined: Aug 2005

if this were for me then id do that but im making a site for someone who doesnt know how to do this so doing that automatically is the only way Sad

demonhale's picture

He has: 3,278 posts

Joined: May 2005

assign height and width tags to the images... Example if the image size is 800x600, try using img height="640" width="480" then it automatically makes it 640x480, it would be easier if you put it as an image class in CSS... or wrap it in divs... But I think you can teach her/him to resize the actual image though , coz its gonna be a pain if you use resize tags on larger images...

Megan's picture

She has: 11,421 posts

Joined: Jun 1999

Sounds like you need a gallery script. There are loads of them out there. You could try searching scripts directories or just check out:

Gallery

You could do this all by hand like demonhale suggested but if you have a lot of images, and are adding more all the itme, it gets very tedious. There's also a way to put Flickr photos on a website if you're familiar with that site.

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.