PNG-fix the close button as well.
authorSteinar H. Gunderson <sesse@debian.org>
Tue, 1 Aug 2006 00:10:59 +0000 (02:10 +0200)
committerSteinar H. Gunderson <sesse@debian.org>
Tue, 1 Aug 2006 00:10:59 +0000 (02:10 +0200)
files/pr0n-fullscreen.js

index a3573c793f66dad1d3cffba691c26f427bd2b9e0..39b3495e68c8df5db89f25051dab53d4185c9319 100644 (file)
@@ -308,5 +308,8 @@ function ie_png_hack()
                
                var previous = document.getElementById("previous");
                previous.outerHTML = "<span id=\"previous\" style=\"display: inline-block; position: absolute; bottom: 0px; right: 0px; width: 50px; height: 50px; filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" + previous.src + "')\" onmousedown=\"if (can_go_previous()) set_opacity('previous', 1.0)\" onmouseup=\"if (can_go_previous()) { set_opacity('previous', 0.7); go_previous(); }\" onmouseout=\"if (can_go_previous()) { set_opacity('previous', 0.7); }\" />";
+               
+               var close = document.getElementById("close");
+               close.outerHTML = "<span id=\"close\" style=\"display: inline-block; position: absolute; top: 0px; right: 0px; width: 50px; height: 50px; filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" + close.src + "')\" onmousedown=\"if (can_go_close()) set_opacity('close', 1.0)\" onmouseup=\"if (can_go_close()) { set_opacity('close', 0.7); go_close(); }\" onmouseout=\"if (can_go_close()) { set_opacity('close', 0.7); }\" />";
        }
 }