X-Git-Url: https://git.nubati.net/cgi-bin/gitweb.cgi?p=phpfspot.git;a=blobdiff_plain;f=phpfspot.js;h=588298ab3691f53755d013e34bdf31aadcfa73b5;hp=9e1a932431923d2d9303628d53fc0826da72aecc;hb=256fffa697fbe6247384d3d3f6894a4c874883b5;hpb=005562e4a4fb2b37fc6f1d4a8ca4a9c11ab42ed1 diff --git a/phpfspot.js b/phpfspot.js index 9e1a932..588298a 100644 --- a/phpfspot.js +++ b/phpfspot.js @@ -304,16 +304,25 @@ 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() +{ + if(document.getElementById('next_link')) { + 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;