Sign in to follow this  

[web] Photo Gallery

Recommended Posts

Any ideas on setting up a good photo gallery? Or any links to some really good designs? I kind of want any given picture to open in a new window, to make things easy and so the page doesn't have to reload all the time. Is this a good idea? Would pop-up blockers block this or no? Tips and ideas welcome. Links too. Anything on setting up a good image gallery. Thank you!!

Share this post

Link to post
Share on other sites
You could use javascript to load another image into an IMG element when a button is clicked or something... Assuming your images are simply indexed (i.e. img10.gif, img11,gif, img12.gif, etc.), then you can just search for the next image. If the file doesn't exist, either wrap to the first image, or do nothing.

If your images don't go in order numerically and you're looking to do something more advanced, create a dynamic page that takes a query string containing the current image index, such as...


Then the getNextImage page could perhaps return some XML like the following:

<?xml version="1.0" ?>
<image id="1043">

Simply call this page in your javascript, and you can parse the XML to display the image in the same page as in the first example.

Hopefully that made sense, I'm distracted playing Texas Hold'em online :-P

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this