summaryrefslogtreecommitdiffstats
path: root/phpfspot.js
diff options
context:
space:
mode:
authorAndreas Unterkircher <unki@netshadow.at>2007-07-21 16:16:23 +0000
committerAndreas Unterkircher <unki@netshadow.at>2007-07-21 16:16:23 +0000
commit70704d20a135f84e7d18072a883807ca5642b1f2 (patch)
tree68cb64dedebdcb1d336de6330c086561fe24715b /phpfspot.js
parent758887b79c875b31b86d427e27f515e2c3d2a257 (diff)
issue56, auto switch in single photo view
git-svn-id: file:///var/lib/svn/phpfspot/trunk@233 fa6a889d-dae6-447d-9e79-4ba9a3039384
Diffstat (limited to 'phpfspot.js')
-rw-r--r--phpfspot.js11
1 files changed, 9 insertions, 2 deletions
diff --git a/phpfspot.js b/phpfspot.js
index 9e1a932..06f20e0 100644
--- a/phpfspot.js
+++ b/phpfspot.js
@@ -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;