summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2005-09-08 05:39:55 +0100
committerAndrew Dolgov <[email protected]>2005-09-08 05:39:55 +0100
commitd5224f0d9c794953a6bb5bb264e856cccc4eb046 (patch)
tree94e38a77e64fd8e4d26cfda2b500bdc75e007496
parentc05a19f39615bb9f8acadabcb0c572253a51a035 (diff)
miscellaneous MSIE compatibility fixes
-rw-r--r--backend.php2
-rw-r--r--functions.js8
-rw-r--r--pngfix.js27
-rw-r--r--tt-rss.css18
-rw-r--r--tt-rss.php3
5 files changed, 42 insertions, 16 deletions
diff --git a/backend.php b/backend.php
index e74310831..4873a966e 100644
--- a/backend.php
+++ b/backend.php
@@ -400,7 +400,7 @@
$content_link = "<a id=\"FTITLE-$id\" href=\"javascript:view($id,$feed_id);\">" .
$line["title"] . "</a>";
- print "<tr class='$class' id='RROW-$id'";
+ print "<tr class='$class' id='RROW-$id'>";
// onclick=\"javascript:view($id,$feed_id)\">
print "<td valign='center' align='center'>$update_pic</td>";
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<document.images.length; i++)
+ {
+ var img = document.images[i]
+ var imgName = img.src.toUpperCase()
+ if (imgName.substring(imgName.length-3, imgName.length) == "PNG")
+ {
+ var imgID = (img.id) ? "id='" + img.id + "' " : ""
+ var imgClass = (img.className) ? "class='" + img.className + "' " : ""
+ var imgTitle = (img.title) ? "title='" + img.title + "' " : "title='" + img.alt + "' "
+ var imgStyle = "display:inline-block;" + img.style.cssText
+ if (img.align == "left") imgStyle = "float:left;" + imgStyle
+ if (img.align == "right") imgStyle = "float:right;" + imgStyle
+ if (img.parentElement.href) imgStyle = "cursor:hand;" + imgStyle
+ var strNewHTML = "<span " + imgID + imgClass + imgTitle
+ + " style=\"" + "width:" + img.width + "px; height:" + img.height + "px;" + imgStyle + ";"
+ + "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader"
+ + "(src=\'" + img.src + "\', sizingMethod='scale');\"></span>"
+ 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 @@
<link rel="stylesheet" href="tt-rss.css" type="text/css">
<script type="text/javascript" src="functions.js"></script>
<script type="text/javascript" src="tt-rss.js"></script>
+ <!--[if gte IE 5.5000]>
+ <script type="text/javascript" src="pngfix.js"></script>
+ <![endif]-->
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>