diff options
author | chrisaga <chrisaga@piwigo.org> | 2005-11-17 20:13:36 +0000 |
---|---|---|
committer | chrisaga <chrisaga@piwigo.org> | 2005-11-17 20:13:36 +0000 |
commit | f280ff4b171e1c3b6150794ac8a875b00e4f7522 (patch) | |
tree | a2f7b47a1b3bc4f7f288b0c9e63b0e5519ee16c0 /include | |
parent | b6833701d641406055951c77f0371476cee47cf0 (diff) |
bug 206 fixed: PNG thumbnails clipped with IE
- added class="icon" to recent.png (functions_html.inc.php)
- added class="button" to al png button images (*.tpl)
- changed pngfix.js to only fix icon or button images
template improvement: category prettier and simpler (a little bit)
- got rid of one SPAN level
- content.css more readable
git-svn-id: http://piwigo.org/svn/branches/branch-1_5@939 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'include')
-rw-r--r-- | include/functions_html.inc.php | 4 | ||||
-rw-r--r-- | include/pngfix.js | 7 |
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); |