Deltopia DeltaWalker Comparison Report

Produced by Deltopia DeltaWalker on Mi Aug 20 15:43:23 2008. See www.deltopia.com for information about DeltaWalker.

Compared

RolePath
AncestorFile
First/Users/cric/Documents/Geschäft/RapidIdeas/Themes/PROThemes/blendit/versions/2.1.0/CABlendit.rwtheme/Contents/pngfix.js
Second/Users/cric/Documents/Geschäft/RapidIdeas/Themes/PROThemes/blendit/versions/2.5.0/CABlendit.rwtheme/Contents/pngfix.js

Preferences

Character caseDifferences in character case are significant
Line delimitersDifferences in line delimiters are ignored
WhitespaceDifferences in whitespace within lines are significant
Difference countsShown in the comparison details

Active File Comparison Filters

No file comparison filters were active.

Comparison

Summaries

  BlocksLines
Same44
Different476
Added00
Deleted11

Details

1/*
2
3Correctly handle PNG transparency in Win IE 5.5 & 6.
4http://homepage.ntlworld.com/bobosola. Updated 18-Jan-2006.
1// Global PNG transparency fix for Internet Explorer up to version 6 - Combined by Fotis Evangelou, http://www.webpr.gr/joomla
6Use in <HEAD> with DEFER keyword wrapped in conditional comments:
7<!--[if lt IE 7]>
8<script defer type="text/javascript" src="pngfix.js"></script>
9<![endif]-->
3// The inline PNG fix, courtesy of Bob Osola, http://homepage.ntlworld.com/bobosola/
4function correctPNG()
5 {
6 for(var i=0; i<document.images.length; i++)
7 {
8 var img = document.images[i]
9 var imgName = img.src.toUpperCase()
10 if (imgName.substring(imgName.length-3, imgName.length) == "PNG")
11 {
12 var imgID = (img.id) ? "id='" + img.id + "' " : ""
13 var imgClass = (img.className) ? "class='" + img.className + "' " : ""
14 var imgTitle = (img.title) ? "title='" + img.title + "' " : "title='" + img.alt + "' "
15 var imgStyle = "display:inline-block;" + img.style.cssText
16 if (img.align == "left") imgStyle = "float:left;" + imgStyle
17 if (img.align == "right") imgStyle = "float:right;" + imgStyle
18 if (img.parentElement.href) imgStyle = "cursor:hand;" + imgStyle
19 var strNewHTML = "<span " + imgID + imgClass + imgTitle
20 + " style=\"" + "width:" + img.width + "px; height:" + img.height + "px;" + imgStyle + ";"
21 + "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader"
22 + "(src=\'" + img.src + "\', sizingMethod='scale');\"></span>"
23 img.outerHTML = strNewHTML
24 i = i-1
25 }
26 }
27 }
11*/
 
13var arVersion = navigator.appVersion.split("MSIE")
14var version = parseFloat(arVersion[1])
30function alphaBackgrounds(){
31 var rslt = navigator.appVersion.match(/MSIE (\d+\.\d+)/, '');
32 var itsAllGood = (rslt != null && Number(rslt[1]) >= 5.5);
33 for (i=0; i<document.all.length; i++){
34 var bg = document.all[i].currentStyle.backgroundImage;
35 if (itsAllGood && bg){
36 if (bg.match(/\.png/i) != null){
37 var mypng = bg.substring(5,bg.length-2);
38 document.all[i].style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+mypng+"', sizingMethod='image')";
39 document.all[i].style.backgroundImage = "url('images/x.gif')";
40 }
41 }
42 }
43}
16if ((version >= 5.5) && (document.body.filters))
17{
18 for(var i=0; i<document.images.length; i++)
19 {
20 var img = document.images[i]
21 var imgName = img.src.toUpperCase()
22 if (imgName.substring(imgName.length-3, imgName.length) == "PNG")
23 {
24 var imgID = (img.id) ? "id='" + img.id + "' " : ""
25 var imgClass = (img.className) ? "class='" + img.className + "' " : ""
26 var imgTitle = (img.title) ? "title='" + img.title + "' " : "title='" + img.alt + "' "
27 var imgStyle = "display:inline-block;" + img.style.cssText
28 if (img.align == "left") imgStyle = "float:left;" + imgStyle
29 if (img.align == "right") imgStyle = "float:right;" + imgStyle
30 if (img.parentElement.href) imgStyle = "cursor:hand;" + imgStyle
31 var strNewHTML = "<span " + imgID + imgClass + imgTitle
32 + " style=\"" + "width:" + img.width + "px; height:" + img.height + "px;" + imgStyle + ";"
33 + "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader"
34 + "(src=\'" + img.src + "\', sizingMethod='scale');\"></span>"
35 img.outerHTML = strNewHTML
36 i = i-1
37 }
38 }
39}
45addLoadEvent(correctPNG);