3 <title> <?= IMAGES_DIR.$simpleImagePath ?> </title>
4 <style type="text/css">
20 text-decoration: none;
22 #next, #previous, #up {
47 <?php if ($nextImageUrl !== '' and $firefox) { ?>
48 <link rel="prefetch" href="<?= $nextImageUrl ?>" />
49 <link rel="prefetch" href="<?= $nextPageUrl ?>" />
55 <a href="<?= $imageUrl ?>"><img src="<?= $imageUrl ?>" id="theimage" /></a>
58 <a href="<?= $directoryUrl ?>" title="Back to directory">^</a>
61 <?php if ($nextPageUrl !== '') { ?>
63 <a href="<?= $nextPageUrl ?>" title="Next image">></a>
67 <?php if ($prevPageUrl !== '') { ?>
69 <a href="<?= $prevPageUrl ?>" title="Previous image"><</a>
73 <script type="text/javascript">
75 <?php if ($nextImageUrl !== '' and ! $firefox) { ?>
76 window.onload = function() { // for browsers not supporting link rel=prefetch
78 im.src = '<?= $nextImageUrl ?>';
79 var req = new XMLHttpRequest();
80 req.open('GET', '<?= $nextPageUrl ?>', false);
85 // keyboard navigation
90 window.location = "<?= $prevPageUrl ?>";
94 window.location = "<?= $nextPageUrl ?>";
96 case 38: // up (down is 40)
97 window.location = "<?= $directoryUrl ?>";
100 window.location = "<?= $imageUrl ?>";
105 if (document.addEventListener) {
106 document.addEventListener("keyup", keyup, false);