From 5a118f1db16afd22cb3c066f07cc6333fa0f96b6 Mon Sep 17 00:00:00 2001 From: Andreas Unterkircher Date: Sat, 29 Mar 2008 11:39:53 +0100 Subject: issue112, enhanced preload functions for photo-index Signed-off-by: Andreas Unterkircher --- phpfspot.js | 29 +++++++++++++++++++---------- themes/default/templates/photo_index.tpl | 17 ++++++++++++++--- 2 files changed, 33 insertions(+), 13 deletions(-) diff --git a/phpfspot.js b/phpfspot.js index 89eacba..f9f9703 100644 --- a/phpfspot.js +++ b/phpfspot.js @@ -427,23 +427,32 @@ function WSR_getElementsByClassName(oElm, strTagName, oClassNames){ } -function preloadPhotos(lbImg) { +function preloadPhotos(image_url) { - var d=document; - if(d.images) - if(!d.photos) - d.photos=new Array(); - - var i, j=d.photos.length; + var i; + var timeout = 1000; + var waiting = 100; + var counting; lbImg=WSR_getElementsByClassName(document,"img","thumb"); for(i=0;i - thumb_{$images[thumb]} +
{$img_name[thumb]}
@@ -101,9 +101,20 @@
- -- cgit v1.2.3-18-g5258