Gallery
A Photo Gallery with CSS Popups
stock.xchng (Photos)
Solucija Forum/Simple PHP gallery (PHP script)
A Photo Gallery with CSS Popups
Example:
Note:
Use image dimensions 320px x 240px for best results.A simple Photo Gallery with PHP
Requirements:
- A source code editor
- PHP installed on your server
Step 1:
Copy and paste the code below in your site, where you wish the gallery to appear. The file extension of your site must be *.php, e.g. gallery.php.
<?php
$d = dir('gallery/');
$i = 0;
while(false !== ($e = $d->read())){
if(strpos($e,'.jpg')){
++$i;
echo '<div class="thumbnail"><a class="gallery" href="#nowhere"><img src="gallery/'.$e.'" alt="
website template image" width="80" height="60" /><b><img src="gallery/'.$e.'" alt="
website template image" width="320" height="240" /></b></a></div>'.chr(10); if(!($i%6))
echo '<br />';
}
}
?>
Step 2:
Create a folder on your server and name it gallery and upload your photos to this folder.
Upload your gallery.php to the root directory on your server and your're done!
The PHP script creates dynamically in conjunction with the CSS and the XHTML of this Design a gallery with popups as shown in the example above.
Credits:
Stu Nicholls (Gallery script)stock.xchng (Photos)
Solucija Forum/Simple PHP gallery (PHP script)