From 31b8f6fc69454b0eafd11509a8e0f2bbbc18de7b Mon Sep 17 00:00:00 2001 From: Ron Pedde Date: Sun, 28 May 2006 08:46:23 +0000 Subject: [PATCH] make .png logo transparent. probably useless, as the logo is going to be replaced, but there you go. --- admin-root/Makefile.am | 4 ++-- admin-root/hdr.html | 5 ++++- admin-root/pngfix.js | 39 +++++++++++++++++++++++++++++++++++++++ 3 files changed, 45 insertions(+), 3 deletions(-) create mode 100644 admin-root/pngfix.js diff --git a/admin-root/Makefile.am b/admin-root/Makefile.am index cac3cc3b..050dff27 100644 --- a/admin-root/Makefile.am +++ b/admin-root/Makefile.am @@ -9,7 +9,7 @@ adminroot_DATA = ftr.html linkOpaque.gif status.html aspl-license.txt \ gpl-license.html aspl-license.html thanks.html feedback.html \ playlist.html playlist.js smart.html smart.js DAAPApplet-0.1.jar \ smartpopup.html applet.html mt-daapd.js CREDITS status.js \ - config.js config.xml spinner.gif util.js + config.js config.xml spinner.gif util.js pngfix.js EXTRA_DIST = ftr.html linkOpaque.gif status.html aspl-license.txt \ gpl-license.txt linkTransparent.gif config-update.html hdr.html \ @@ -17,5 +17,5 @@ EXTRA_DIST = ftr.html linkOpaque.gif status.html aspl-license.txt \ gpl-license.html aspl-license.html thanks.html feedback.html \ playlist.html playlist.js smart.html smart.js DAAPApplet-0.1.jar \ smartpopup.html applet.html mt-daapd.js CREDITS status.js \ - config.js config.xml spinner.gif util.js + config.js config.xml spinner.gif util.js pngfix.js diff --git a/admin-root/hdr.html b/admin-root/hdr.html index 9a520ce4..8817ca87 100644 --- a/admin-root/hdr.html +++ b/admin-root/hdr.html @@ -19,6 +19,9 @@ @ispage playlist.html::@ @ispage playlist.html::@ + @@ -57,4 +60,4 @@
@session-count@ Connected Users
- \ No newline at end of file + diff --git a/admin-root/pngfix.js b/admin-root/pngfix.js new file mode 100644 index 00000000..920f7700 --- /dev/null +++ b/admin-root/pngfix.js @@ -0,0 +1,39 @@ +/* + +Correctly handle PNG transparency in Win IE 5.5 & 6. +http://homepage.ntlworld.com/bobosola. Updated 18-Jan-2006. + +Use in with DEFER keyword wrapped in conditional comments: + + +*/ + +var arVersion = navigator.appVersion.split("MSIE") +var version = parseFloat(arVersion[1]) + +if ((version >= 5.5) && (document.body.filters)) +{ + for(var i=0; i" + img.outerHTML = strNewHTML + i = i-1 + } + } +}