}
}
+function next10() {
+ if (slideshow == 1) {
+ toggle_slideshow(true);
+ }
+
+ if (current < images.length - 11) {
+ current += 10;
+ } else {
+ current = images.length - 1;
+ }
+ display_current();
+}
+
function previous() {
if (slideshow == 1) {
toggle_slideshow(true);
}
}
+function previous10() {
+ if (slideshow == 1) {
+ toggle_slideshow(true);
+ }
+
+ if (current > 10) {
+ current -= 10;
+ } else {
+ current = 0;
+ }
+ display_current();
+}
+
function last() {
if (slideshow == 1) {
toggle_slideshow(true);
next();
break;
case 38: // up
- for (i = 0; i < 10; i++) {
- previous();
- }
+ previous10();
break;
case 40: // down
- for (i = 0; i < 10; i++) {
- next();
- }
+ next10();
break;
}
}