summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 3a64cc8)
raw | patch | inline | side by side (parent: 3a64cc8)
author | janw <janw@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 12 Dec 2005 13:23:53 +0000 (13:23 +0000) | ||
committer | janw <janw@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 12 Dec 2005 13:23:53 +0000 (13:23 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2297 594d385d-05f5-0310-b6e9-bd551577e9d8
html/include/png.js | patch | blob | history |
diff --git a/html/include/png.js b/html/include/png.js
index 145eaae1779c954fd2ac4576b52be5d1b0b19d5c..2260c2b9073bbd05ebc3a5900763a498b9e38457 100644 (file)
--- a/html/include/png.js
+++ b/html/include/png.js
var rslt = navigator.appVersion.match(/MSIE (\d+\.\d+)/, '');\r
var itsAllGood = (rslt != null && Number(rslt[1]) > 5.5);\r
\r
- if (itsAllGood)\r
- for (var i = 0; i < document.images.length; i++)\r
+ if (itsAllGood) {\r
+ for (var i = 0; i < document.images.length; i++) {\r
pngLoad(document.images[i]);\r
+ }\r
+ for (var i = 0; i < document.getElementsByTagName("input").length; i++) {\r
+ var img = document.getElementsByTagName("input")[i];\r
+ if(typeof img.type == "string" && img.type == "image") {\r
+ pngLoad(img);\r
+ }\r
+ }\r
+ }\r
}\r
\r
// loads an image, src is optional // public\r
// no src arameter, but its png -> simply swap\r
pngSwapPrepare(img);\r
}\r
+ } else if (typeof img.tagName == "string" && img.tagName == "INPUT") {\r
+ if(img.src.match(/\.png$/i) != null) {\r
+ pngSwapPrepare(img);\r
+ }\r
}\r
\r
// swap (if complete) or shedule it to onload event // private\r