From d5224f0d9c794953a6bb5bb264e856cccc4eb046 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Thu, 8 Sep 2005 05:39:55 +0100 Subject: miscellaneous MSIE compatibility fixes --- backend.php | 2 +- functions.js | 8 ++++++-- pngfix.js | 27 +++++++++++++++++++++++++++ tt-rss.css | 18 +++++------------- tt-rss.php | 3 +++ 5 files changed, 42 insertions(+), 16 deletions(-) create mode 100644 pngfix.js diff --git a/backend.php b/backend.php index e74310831..4873a966e 100644 --- a/backend.php +++ b/backend.php @@ -400,7 +400,7 @@ $content_link = "" . $line["title"] . ""; - print ""; // onclick=\"javascript:view($id,$feed_id)\"> print "$update_pic"; diff --git a/functions.js b/functions.js index 540d7b89c..5f8b2425f 100644 --- a/functions.js +++ b/functions.js @@ -240,7 +240,11 @@ function disableContainerChildren(id, disable, doc) { for (var i = 0; i < container.childNodes.length; i++) { var child = container.childNodes[i]; - child.disabled = disable; + try { + child.disabled = disable; + } catch (E) { + + } if (disable) { if (child.className && child.className.match("button")) { @@ -250,7 +254,7 @@ function disableContainerChildren(id, disable, doc) { if (child.className && child.className.match("disabledButton")) { child.className = "button"; } - } + } } } diff --git a/pngfix.js b/pngfix.js new file mode 100644 index 000000000..c8ef4b28e --- /dev/null +++ b/pngfix.js @@ -0,0 +1,27 @@ +// stolen from http://homepage.ntlworld.com/bobosola/pngtestfixed.htm + +function correctPNG() // correctly handle PNG transparency in Win IE 5.5 or higher. + { + for(var i=0; i" + img.outerHTML = strNewHTML + i = i-1 + } + } + } +window.attachEvent("onload", correctPNG); diff --git a/tt-rss.css b/tt-rss.css index 4e316e489..e3aed83f6 100644 --- a/tt-rss.css +++ b/tt-rss.css @@ -38,7 +38,7 @@ table.main td.feeds { border-width : 1px 0px 0px 0px; border-style : solid; border-color : #c0c0c0; - padding : 5px; + padding : 0px; } table.main td.headlinesToolbarBox { @@ -211,7 +211,7 @@ a:hover { #notify { font-weight : bold; - font-size : small; + font-size : 10pt; display : none; width : 350px; color : gray; @@ -276,17 +276,9 @@ a.button { } .disabledButton { - border : 1px solid #d0d0d0; - background : white; - color : #909090; - padding : 1px 5px 1px 5px; - font-size : small; -} - -.disabledButton:hover { - background : white; - text-decoration : none; - color : #909090; + border : 1px solid #c0c0c0; + background-color : white; + color : gray; } .evenGrayed { diff --git a/tt-rss.php b/tt-rss.php index 2428b1d17..326306ec7 100644 --- a/tt-rss.php +++ b/tt-rss.php @@ -4,6 +4,9 @@ + -- cgit v1.2.3