Jump to content
  • Advertisement
Sign in to follow this  

[web] Photo Gallery

This topic is 4907 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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
Sign in to follow this  

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!