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

 

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

 

 

 

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.