Jump to content

Image Change


jonnygrim

Recommended Posts

Hi,

 

Hope that someone can help me with a little problem I have.  I building a little page that has some photos of the family.  Ive created little thumbnails and large versions of each image.

 

What im trying to achieve is that in div a: i have each of the thumbnails and in div b: it displays a large verison on the image thats clicked.

 

Ive seen a few methods when searching using java and ajax etc, but i'm not sure which is the best way to do this and the most simple so that I dont have to create a new page for each image.

 

Thanks for your help in advance.

 

 

Link to comment
Share on other sites

if i get this correct:

 

you want to dispay the thumbnails, and when someone clicks, you want to show the larger picture?

 

if both pictures are in the same page, than you are waisting bandwith, because both pictures need to be downloaded for this page

 

changing from the 'thumb' to the 'large' cannot be done with PHP, because you need to do something client-side, and PHP only does things on the server-side...

Link to comment
Share on other sites

Hi,

 

Hope that someone can help me with a little problem I have.  I building a little page that has some photos of the family.  Ive created little thumbnails and large versions of each image.

 

What im trying to achieve is that in div a: i have each of the thumbnails and in div b: it displays a large verison on the image thats clicked.

 

Ive seen a few methods when searching using java and ajax etc, but i'm not sure which is the best way to do this and the most simple so that I dont have to create a new page for each image.

 

Thanks for your help in advance.

 

Javascript is the way to go, not going to do this with Xhtml or CSS (yet).

 

The following link is a free script that should work for you.

 

http://www.dynamicdrive.com/dynamicindex4/thumbnail2.htm

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.