Gallery
A Photo Gallery with CSS Popups

Example:

website template image

website template imagewebsite template image
website template imagewebsite template image
website template imagewebsite template image
website template imagewebsite template image
website template imagewebsite template image
website template imagewebsite template image
website template imagewebsite template image

Note:

Use image dimensions 320px x 240px for best results.

A simple Photo Gallery with PHP

Requirements:

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)

News

HTML, short for Hypertext Markup Language, is the predominant markup language for the creation of web pages. It provides a means to describe the structure of text-based information in a document - by denoting certain text as headings, paragraphs, lists, and so on - and to supplement that text with interactive forms, embedded images, and other objects.

Read more...