another PHP 5.2 bugfix and an javascript fix from Sebastian

This commit is contained in:
Lars Kneschke 2007-02-28 06:06:35 +00:00
parent c107224bf5
commit 8e1dc4b5b1
3 changed files with 2 additions and 4 deletions

Binary file not shown.

View File

@ -1056,7 +1056,7 @@ class html
if ($this->user_agent == 'msie' && $this->ua_version >= 5.5 && substr($url,-4) == '.png')
{
$extra_styles = "display: inline-block; filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='$url',sizingMethod='image'); width: 1px; height: 1px;";
if (strstr($options,'style="'))
if (false!==strpos($options,'style="'))
{
$options = str_replace('style="','style="'.$extra_styles, $options);
}

View File

@ -1,8 +1,6 @@
function correctPNG() // correctly handle PNG transparency in Win IE 5.5 or higher.
{
var numberOfImages = document.images.length;
for(var i=0; i<numberOfImages; i++)
for(var i=0; i<document.images.length; i++)
{
var img = document.images[i]
var imgName = img.src.toUpperCase()