Ignore:
Timestamp:
Nov 17, 2005, 9:13:36 PM (19 years ago)
Author:
chrisaga
Message:

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
Location:
branches/branch-1_5/include
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/branch-1_5/include/functions_html.inc.php

    r922 r939  
    4949    $title .=  ' '.$lang['days'];
    5050    $size = getimagesize( $icon_url );
    51     $output = '<img title="'.$title.'" src="'.$icon_url.'" style="border:0;';
    52     $output.= 'height:'.$size[1].'px;width:'.$size[0].'px" alt="" />';
     51    $output = '<img title="'.$title.'" src="'.$icon_url.'" class="icon" style="border:0;';
     52    $output.= 'height:'.$size[1].'px;width:'.$size[0].'px" alt="(!)" />';
    5353  }
    5454  return $output;
  • branches/branch-1_5/include/pngfix.js

    r905 r939  
    77   for(var i=0; i<document.images.length; i++)
    88      {
    9           var img = document.images[i]
     9      var img = document.images[i]
     10      if (img.className == "button" || img.className == "icon")
     11          {
    1012          var imgName = img.src.toUpperCase()
    1113          if (imgName.substring(imgName.length-3, imgName.length) == "PNG")
     
    2527                 i = i-1
    2628             }
     29          }
    2730      }
    2831   }
Note: See TracChangeset for help on using the changeset viewer.