diff options
Diffstat (limited to 'phpfspot.js')
-rw-r--r-- | phpfspot.js | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/phpfspot.js b/phpfspot.js index dff8da9..9e1a932 100644 --- a/phpfspot.js +++ b/phpfspot.js @@ -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 = ''; |