[jQuery] How to load picture after picture
I currently retrieve all pictures of my gallery with the following PHP
code
$files = getFiles ($d);
if (count ($files) > 0) {
foreach ($files as $key => $f) {
echo "<img align=\"center\" src=\"$f\">
";
}
}
simply adding picture after picture. But since there will be many more
pictures I'd like to load just the current and possibly the next one.
A <prev> (disabled when current==first) and a <next> button should
allow for moving through the pictures, loading the next one when
needed. How could I do this with jQuery?
O. Wyss
Current implementation: http://www.orpatec.ch/index.php?page=gallery.php