Have you ever thought about showcasing a large number of images on a non-CMS website? Say you have 50 images that can't all be displayed at once. One idea is to display the first 15, then allow users to click "Next" to reveal the next batch of 15, and so on.
How can this be achieved using AJAX, PHP, and CSS?
Perhaps counting, adding a hidden class, and toggling visibility could work?
Alternatively, in PHP or jQuery, how can you target the first 15 elements within a div with the class "image," add a "showimage" class to them, and then upon clicking a "NEXT" button, remove the "showimage" class from all and reveal images 16 to 30?
A sample code snippet may look like the following:
<div id="gallery2"> <!-- Photo Gallery -->
<a href="ia/new_01.jpg" class="highslide" onclick="return hs.expand(this)">
<img src="timthumb.php?src=ia/new_01.jpg&h=<?php echo $size ?>" title="Click to enlarge"
alt="Pont Neuf - Ile de la Cité - Paris - France - Watercolor <br> Personal design"/></a>
<a href="ia/new_02.jpg" class="highslide" onclick="return hs.expand(this)">
<img src="timthumb.php?src=ia/new_02.jpg&h=<?php echo $size ?>" title="Click to enlarge"
alt="Studebaker Hawk - Retro concept <br> Personal design"/></a>
<a href="ia/new_03.jpg" class="highslide" onclick="return hs.expand(this)">
<img src="timthumb.php?src=ia/new_03.jpg&h=<?php echo $size ?>" title="Click to enlarge"
alt="Corvette - Retro concept <br> Personal design"/></a>
<a href="ia/new_04.jpg" class="highslide" onclick="return hs.expand(this)">
<img src="timthumb.php?src=ia/new_04.jpg&h=<?php echo $size ?>" title="Click to enlarge"
alt="Thunderbird - Retro concept <br> Personal design"/></a>
<a href="ia/new_05.jpg" class="highslide" onclick="return hs.expand(this)">
<img src="timthumb.php?src=ia/new_05.jpg&h=<?php echo $size ?>" title="Click to enlarge"
alt="My Father's Cars <br> Personal design"/></a>
Repeat the process for the remaining images up to 50.