From b45e27cce19f24c67b9f481d5a2a9b1f3888dd88 Mon Sep 17 00:00:00 2001 From: Nishi Date: Wed, 2 Oct 2024 08:13:21 +0000 Subject: [PATCH] fix for png on ie6 git-svn-id: file:///raid/svn-personal/koakuma/trunk@24 219d0f9c-2d94-d447-890a-813e76b88fe9 --- Static/style.css | 5 +++++ Static/transparent.gif | Bin 0 -> 196 bytes koakuma.cgi.in | 8 +++++++- 3 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 Static/transparent.gif 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 0000000000000000000000000000000000000000..d7941ceee1ad9adaddca9e3c45ed819e0aa1f6c5 GIT binary patch literal 196 zcmZ?wbhEHbY+z_$_`m=Kia%KxK};PG0g_>0n%&aB^7LE&#dEgY>fU^B&u{*=M;_Cj zbuN2#YTG;R)iK${5)LkM;3kT@X?xnX4z-XUa#d>R(}TD9xctyjOeq_wTRqqD2KwZj+~tO2SXVA}uy literal 0 HcmV?d00001 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 "
" -- 2.45.2