View Single Post
Old 07-27-2008, 06:04 PM  
SmokeyTheBear
►SouthOfHeaven
 
SmokeyTheBear's Avatar
 
Join Date: Jun 2004
Location: PlanetEarth MyBoardRank: GerbilMaster My-Penis-Size: extralarge MyWeapon: Computer
Posts: 28,609
save as list.php
place in directory above images
edit directory and url

PHP Code:
<?php
$dir 
"dir/";
if (
is_dir($dir)) {
    if (
$dh opendir($dir)) {
        while ((
$file readdir($dh)) !== false) {
            echo 
"<a href=\"http://yoursite.com/dir/$file\" title=\"$file\">$file</a> $file <br>\n";
        }
        
closedir($dh);
    }
}
?>

keep in mind the way google images displays your images depends on keywords both on the page and in things like alt tags, by directly linking to the source image you will be relying on the keywqord on the page the menu is placed and the linking text ( in this example the linking text is the file name )
__________________
hatisblack at yahoo.com
SmokeyTheBear is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote