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 )