From: Andreas Unterkircher Date: Tue, 17 Jul 2007 17:37:31 +0000 (+0000) Subject: issue45, first learning lessons with image preloading X-Git-Tag: phpfspot-1.2~117 X-Git-Url: https://git.nubati.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=94bb73ca0d019247d4f08fb03a7f5afc2b5323ee;p=phpfspot.git issue45, first learning lessons with image preloading git-svn-id: file:///var/lib/svn/phpfspot/trunk@218 fa6a889d-dae6-447d-9e79-4ba9a3039384 --- 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 +