aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/functions_html.inc.php4
-rw-r--r--include/pngfix.js7
2 files changed, 7 insertions, 4 deletions
diff --git a/include/functions_html.inc.php b/include/functions_html.inc.php
index 5fe88fb63..21dcf0834 100644
--- a/include/functions_html.inc.php
+++ b/include/functions_html.inc.php
@@ -48,8 +48,8 @@ function get_icon( $date )
$title .= $user['recent_period'];
$title .= ' '.$lang['days'];
$size = getimagesize( $icon_url );
- $output = '<img title="'.$title.'" src="'.$icon_url.'" style="border:0;';
- $output.= 'height:'.$size[1].'px;width:'.$size[0].'px" alt="" />';
+ $output = '<img title="'.$title.'" src="'.$icon_url.'" class="icon" style="border:0;';
+ $output.= 'height:'.$size[1].'px;width:'.$size[0].'px" alt="(!)" />';
}
return $output;
}
diff --git a/include/pngfix.js b/include/pngfix.js
index ba1a099ae..a543c09cb 100644
--- a/include/pngfix.js
+++ b/include/pngfix.js
@@ -6,7 +6,9 @@ function correctPNG()
{
for(var i=0; i<document.images.length; i++)
{
- var img = document.images[i]
+ var img = document.images[i]
+ if (img.className == "button" || img.className == "icon")
+ {
var imgName = img.src.toUpperCase()
if (imgName.substring(imgName.length-3, imgName.length) == "PNG")
{
@@ -24,6 +26,7 @@ function correctPNG()
img.outerHTML = strNewHTML
i = i-1
}
+ }
}
}
-window.attachEvent("onload", correctPNG); \ No newline at end of file
+window.attachEvent("onload", correctPNG);