issue56, auto switch in single photo view
[phpfspot.git] / phpfspot.js
index 9e1a932431923d2d9303628d53fc0826da72aecc..06f20e0314d763ec6211a3ea79a9a4bec6caa65e 100644 (file)
@@ -304,16 +304,23 @@ function startSlideShow()
 {
    HTML_AJAX.grab(encodeURI('rpc.php?action=reset_slideshow'));
    nextSlide();
+   setInterval("nextSlide()", 3000);
 }
 
 function nextSlide()
 {
    next_img = HTML_AJAX.grab(encodeURI('rpc.php?action=get_next_slideshow_img'));
    document.getElementById('slide_img').src = next_img;
-   setTimeout("nextSlide()", 3000);
 }
 
+function autoBrowse()
+{
+   var next_link = document.getElementById('next_link').href;
+   window.location.href = next_link;
+   setTimeout("autoBrowse()", 5000);
+}  
+
 var startup = 1;
 var calendar_shown = 0;
 var calendar_mode = '';
-
+var autobrowse = 0;