issue46, first slideshow implementation
[phpfspot.git] / phpfspot.js
index dff8da9e68c4aa536061b272c9df3f3bfdf4cef6..9e1a932431923d2d9303628d53fc0826da72aecc 100644 (file)
@@ -300,6 +300,19 @@ function preloadPhotos(lbImg) {
    }
 }
 
+function startSlideShow()
+{
+   HTML_AJAX.grab(encodeURI('rpc.php?action=reset_slideshow'));
+   nextSlide();
+}
+
+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);
+}
+
 var startup = 1;
 var calendar_shown = 0;
 var calendar_mode = '';