From 94bb73ca0d019247d4f08fb03a7f5afc2b5323ee Mon Sep 17 00:00:00 2001 From: Andreas Unterkircher Date: Tue, 17 Jul 2007 17:37:31 +0000 Subject: issue45, first learning lessons with image preloading git-svn-id: file:///var/lib/svn/phpfspot/trunk@218 fa6a889d-dae6-447d-9e79-4ba9a3039384 --- phpfspot.js | 49 +++++++++++++++++++++++++++++++++++++++++++++++ templates/photo_index.tpl | 5 +++++ 2 files changed, 54 insertions(+) diff --git a/phpfspot.js b/phpfspot.js index 068a96f..58e48de 100644 --- a/phpfspot.js +++ b/phpfspot.js @@ -226,6 +226,55 @@ function resetAll() refreshPhotoIndex(); } +function WSR_getElementsByClassName(oElm, strTagName, oClassNames){ + var arrElements = (strTagName == "*" && oElm.all)? oElm.all : oElm.getElementsByTagName(strTagName); + var arrReturnElements = new Array(); + var arrRegExpClassNames = new Array(); + if(typeof oClassNames == "object"){ + for(var i=0; i + -- cgit v1.2.3-18-g5258