User not logged in - login - register
Home Calendar Books School Tool Photo Gallery Message Boards Users Statistics Advertise Site Info
go to bottom | |
 Message Boards » » HTML code help Page [1]  
BRob82
All American
4967 Posts
user info
edit post

What is the code used to post pictures smaller and then click on the to see the larger photos? I am trying to use this on my website but can't find or remember the code for it. Anyone know?

10/27/2006 9:02:56 PM

Pyro
Suspended
4836 Posts
user info
edit post

You need to resize each photo(using photoshop/gimp/etc) to create thumbnail images. So you'll have two sets of images. Make each small image a link to the bigger version like so:

<a href="thebigimage.jpg"><img src="littleimage.jpg"></a>


Or...this program will resize and spit out a complete html photo album for you. Just ftp all the files and you're set. http://www.ornj.net/webalbum/

10/27/2006 9:25:14 PM

Ernie
All American
45943 Posts
user info
edit post

no you don't

<a href="picture.jpg"><img src="picture.jpg" height="100" width="100"></a>

will do the trick, just change the height and width values to whatever you desire

10/27/2006 9:28:24 PM

Pyro
Suspended
4836 Posts
user info
edit post

That method forces the user to download the entire image, just for the thumbnail. The point of thumbnails is to allow you to view all the photos quickly, then choose the one you want to wait for to download.

If all your visitors are broadband, it doesn't matter.
-------------------
Also, 100x100 will probably warp your photos. Stick with some ratio of 8x6.

[Edited on October 27, 2006 at 9:44 PM. Reason : .]

[Edited on October 27, 2006 at 9:44 PM. Reason : I mean 4x3.]

10/27/2006 9:40:21 PM

duro982
All American
3088 Posts
user info
edit post

making it 4x3 could just as easily warp it (not safe to assume the original size of the kids pics)

the smaller image should be scaled down from the original, as in... though smaller the two sides should have the same ratio as the orginal.

if you want an example go to somebody's tww photo gallery. Right click on one of the thumbnails and click "view image", look at the file name, there's a "t" before the .jpg. Then in the address bar delete the "t" and you'll see the original image (notice that the thumbnails aren't all 100x100 or some ratio of 4x3, they are in proportion to the actual image). So when you load a picture into your tww photogallery it stores the pic and creates a second scaled down version of that picture to use for the thumbnail, the thumbnail file gets the same name as the actual picture but with a "t" at the end to keep things simple.

also if you don't know how to scale an image down and don't to use that program you could always just upload them to your photogallery here then view the image of the thumbnail and save the picture for use on your website.

that being said there is no correct answer, just a couple ways to do it and as stated one is better suited to meet the requirements of anyone who views your site regardless of their connection speed.

10/28/2006 12:02:11 AM

Prospero
All American
11662 Posts
user info
edit post

thank heavens there's someone on here who knows what their talking about.

10/29/2006 10:52:55 PM

Pyro
Suspended
4836 Posts
user info
edit post

they're

10/29/2006 10:58:09 PM

Prospero
All American
11662 Posts
user info
edit post

thank heavens there's someone on here who knows what they're talking about... lol

10/30/2006 7:55:28 AM

qntmfred
retired
40562 Posts
user info
edit post

lol

10/30/2006 9:13:34 AM

agentlion
All American
13936 Posts
user info
edit post

thank heavens they'res some one on hear who nos what there talking about

10/30/2006 9:33:09 AM

ncsuapex
SpaceForRent
37776 Posts
user info
edit post

I use Irfanview to make my thumbnails page but this is the code.



<A HREF="pic.jpg" target="ImageWindow" style="text-decoration:none">
<IMG SRC="pic_t.jpg" WIDTH="150" HEIGHT="150" BORDER="0" ALT="pic.jpg"><BR>pic.jpg</A>



pic.jpg is the fullsize picture and pic_t.jpg is the thumbnail, you'll have to mess around with the format depending on how you position your pictures on your page.

10/30/2006 10:29:20 AM

 Message Boards » Tech Talk » HTML code help Page [1]  
go to top | |
Admin Options : move topic | lock topic

© 2024 by The Wolf Web - All Rights Reserved.
The material located at this site is not endorsed, sponsored or provided by or on behalf of North Carolina State University.
Powered by CrazyWeb v2.38 - our disclaimer.