From 56f29767a83b7f616962db2ffde2ae45f46ae831 Mon Sep 17 00:00:00 2001 From: chrisaga Date: Thu, 20 Oct 2005 19:06:17 +0000 Subject: bug 176 fixed: need a javascript to handle transparent PNG background in IE (tribute to Bob Osola http://homepage.ntlworld.com/bobosola/index.htm display: fixed another IE childselector bug in Categories Management admin page and improved display of this page in all browsers too. git-svn-id: http://piwigo.org/svn/trunk@905 68402e56-0260-453c-a942-63ccdbb3a9ee --- include/pngfix.js | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 include/pngfix.js (limited to 'include') diff --git a/include/pngfix.js b/include/pngfix.js new file mode 100644 index 000000000..ba1a099ae --- /dev/null +++ b/include/pngfix.js @@ -0,0 +1,29 @@ + +// Correctly handle PNG transparency in Win IE 5.5 or higher. +// http://homepage.ntlworld.com/bobosola. Updated 02-March-2004 + +function correctPNG() + { + for(var i=0; i" + img.outerHTML = strNewHTML + i = i-1 + } + } + } +window.attachEvent("onload", correctPNG); \ No newline at end of file -- cgit v1.2.3