Jump to content

Preview album (not loading up all the pictures all the time)


ringworm24

Recommended Posts

Hi,

I was wondering if anyone could help a newbie I am using CSS MYSQL and PHP. And for a learning excises I am trying to make my own gallery.  Basically I have it so I can click on the album and it shows all the thumb nail pictures and then I click on the picture and it displays the picture.

I was hoping to take it one step further by display the preview pictures in a container , which would then display the picture in a different container. I can do this by passing a variable in a link to the same page and using GET. The only problem with this that it will have to load all the preview pictures again.

So finally how can I achieve the above with PHP/CSS without having to load all the preview pictures every time

Hope that made sense?

Many thanks

 

Link to comment
Share on other sites

Hi,

 

AJAX could be used here but depending on your needs you may only need something like lightbox (http://www.huddletogether.com/projects/lightbox2/) or fancybox (http://fancybox.net/). Take a look at the link below.

 

http://www.rob-passmore.co.uk/gallery/portrait/

 

This is a site I developed and includes a gallery very similar to your description. No AJAX is involved here and it is just the use of the brilliant fancybox.

 

Hope this helps.

 

jug

 

 

 

 

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.