diff pics/common.php @ 25:8314130afe1d

add javascript to handle next/prev/up shortcut keys
author paulo@twcdns.fastsearch.net
date Tue, 26 Apr 2011 00:18:06 -0700
parents 2ede1c948f35
children
line diff
     1.1 --- a/pics/common.php	Mon Mar 07 20:45:39 2011 -0800
     1.2 +++ b/pics/common.php	Tue Apr 26 00:18:06 2011 -0700
     1.3 @@ -47,17 +47,17 @@
     1.4  				for ($i = 0, $size = sizeof($files); $i < $size; $i++) {
     1.5  					if ($files[$i] == $getValue) {
     1.6  						if ($i > 0) {
     1.7 -							echo '<A HREF="browse.php?id=' . $files[$i - 1] . '" accesskey="p">';
     1.8 +							echo '<A HREF="browse.php?id=' . $files[$i - 1] . '" ID="prev" accesskey="p">';
     1.9  							echo '<IMG SRC="' . $thumbs_dir . $files[$i - 1] . '">';
    1.10  							echo '</A>' . "\n";
    1.11  						}
    1.12  						if ($i < $size - 1) {
    1.13 -							echo '<A HREF="browse.php?id=' . $files[$i + 1] . '" accesskey="n">';
    1.14 +							echo '<A HREF="browse.php?id=' . $files[$i + 1] . '" ID="next" accesskey="n">';
    1.15  							echo '<IMG SRC="' . $thumbs_dir . $files[$i + 1] . '">';
    1.16  							echo '</A>' . "\n";
    1.17  						}
    1.18  						echo '<br>' . "\n";
    1.19 -						echo '<A HREF="./index.php#' . $files[$i] . '">';
    1.20 +						echo '<A HREF="./index.php#' . $files[$i] . '" ID="up" accesskey="u">';
    1.21  						echo '<IMG SRC="' . $browse_dir . $files[$i] . '"> ';
    1.22  						echo '</A>' . "\n";
    1.23