From e5c62d73d49624d5d39317f141700c607bc44344 Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Sat, 9 Dec 2006 17:23:22 +0100 Subject: [PATCH] Fix IE opacity error in indexed mode. --- files/pr0n-fullscreen.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/files/pr0n-fullscreen.js b/files/pr0n-fullscreen.js index d7c2c7f..857f3d9 100644 --- a/files/pr0n-fullscreen.js +++ b/files/pr0n-fullscreen.js @@ -144,8 +144,13 @@ function set_opacity(id, amount) elem.style.filter = ""; } elem.style.filter += "alpha(opacity=" + (amount*100.0) + ")"; - } else { - elem.filters.alpha.opacity = (amount * 100.0); + } else { + // ugh? this seems to break in color index mode... + if (typeof(elem.filters) == 'unknown') { + elem.style.filter = "alpha(opacity=" + (amount*100.0) + ")"; + } else { + elem.filters.alpha.opacity = (amount * 100.0); + } } } else { // no alpha support if (amount > 0.5) { -- 2.39.2