Published in: PHP
[directory] ├index.php //this snippet ├imageA.jpg ├imageB.gif └imageC.png
This snipet displays the thumbnail of the picture file that exists in the same directory. When the thumbnail image is clicked, the original size image is displayed.
options: filetype, width, height, pagetitle
<?php $width = 100; $height = 100; $pageTitle = "Pictures"; // ************************************************************* $f = '*.'.$f; $height += 20; ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta http-equiv="Content-Type" content="text/html;charset=utf-8" /> <style type="text/css"> <!-- * { margin:0; padding:0; } h1 { background:#eee; font-weight:normal; padding:3px 5px; font-size:medium; } ul { margin-top:10px; list-style:none; } ul li span { height:20px; font-size:medium; font-style:italic; } --> </style> </head> <body> <ul> <li> </li> <?php $loop++; } ?> </ul> </body> </html>
You need to login to post a comment.
