From: Nishi Date: Wed, 2 Oct 2024 08:13:21 +0000 (+0000) Subject: fix for png on ie6 X-Git-Url: https://git.chaotic.ninja/gitweb/nishi/?a=commitdiff_plain;h=b45e27cce19f24c67b9f481d5a2a9b1f3888dd88;p=koakuma.git fix for png on ie6 git-svn-id: file:///raid/svn-personal/koakuma/trunk@24 219d0f9c-2d94-d447-890a-813e76b88fe9 --- diff --git a/Static/style.css b/Static/style.css index da9f6f3..d84bce1 100644 --- a/Static/style.css +++ b/Static/style.css @@ -49,6 +49,11 @@ th { height: 88px; } +img { + border: none; + background-color: transparent; +} + #title { padding: 5px; background-color: #606080; diff --git a/Static/transparent.gif b/Static/transparent.gif new file mode 100644 index 0000000..d7941ce Binary files /dev/null and b/Static/transparent.gif differ diff --git a/koakuma.cgi.in b/koakuma.cgi.in index 7861db6..652590a 100644 --- a/koakuma.cgi.in +++ b/koakuma.cgi.in @@ -240,10 +240,16 @@ proc start_html {title has_toc} { rputs " " rputs " $title - Koakuma" rputs " " + set msie " src=\"$koakuma_png\"" + if { [info exists "env(HTTP_USER_AGENT)"] } { + if { [regexp {MSIE 6} "$env(HTTP_USER_AGENT)"] } { + set msie " style=\"filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='$koakuma_png', sizingMethod='scale');\" src=\"/static/transparent.gif\"" + } + } rputs " " rputs " " rputs " " - rputs " \"Koakuma" + rputs " \"Koakuma" rputs " " rputs "
" rputs "
"