276. File Comparison Report

Produced on Mon May 12 13:05:45 2008 UTC. This report uses XHTML and CSS2, and is best viewed with a reasonably standards compliant browser such as the latest version of Firefox or Internet Explorer. For optimum results when printing this report, use landscape orientation and enable printing of background images and colours in your browser.

276.1 Files compared

# Location File Last Modified
1 Dolphin-v.6.0.5\orca\js util.js Thu Sep 20 08:58:24 2007 UTC
2 Dolphin-v.6.1.0\orca\js util.js Wed Apr 9 17:44:50 2008 UTC

276.2 Comparison summary

Description Between
Files 1 and 2
Text Blocks Lines
Unchanged 2 154
Changed 1 2
Inserted 1 11
Removed 0 0

276.3 Comparison options

Whitespace
Character case Differences in character case are significant
Line endings Differences in line endings (CR and LF characters) are ignored
CR/LF characters Not shown in the comparison detail

276.4 Active regular expressions

No regular expressions were active.

276.5 Comparison detail

1   /**   1   /**
2   *                              O rca Intera ctive Foru m Script   2   *                              O rca Intera ctive Foru m Script
3   *                                 --------- ------   3   *                                 --------- ------
4   *     Star ted              : Mo n Mar 23 2 006   4   *     Star ted              : Mo n Mar 23 2 006
5   *     Copy right            : (C ) 2007 Boo nEx Group   5   *     Copy right            : (C ) 2007 Boo nEx Group
6   *     Webs ite              : ht tp://www.b oonex.com   6   *     Webs ite              : ht tp://www.b oonex.com
7   * This fil e is part  of Orca -  Interactiv e Forum Sc ript   7   * This fil e is part  of Orca -  Interactiv e Forum Sc ript
8   * GPL   8   * Creative  Commons A ttribution  3.0 Licen se
9   **/   9   **/
10     10  
11     11  
12   function h overEffect s() {   12   function h overEffect s() {
13       //get  all elemen ts (text i nputs, pas swords inp uts, texta reas)   13       //get  all elemen ts (text i nputs, pas swords inp uts, texta reas)
14       var el ements = d ocument.ge tElementsB yTagName(' input');   14       var el ements = d ocument.ge tElementsB yTagName(' input');
15       var j  = 0;   15       var j  = 0;
16       var ho vers = new  Array();   16       var ho vers = new  Array();
17       for (v ar i4 = 0;  i4 < elem ents.lengt h; i4++) {   17       for (v ar i4 = 0;  i4 < elem ents.lengt h; i4++) {
18           if ((elements [i4].type= ='text')|| (elements[ i4].type== 'password' )) {   18           if ((elements [i4].type= ='text')|| (elements[ i4].type== 'password' )) {
19                hovers[j ] = elemen ts[i4];   19                hovers[j ] = elemen ts[i4];
20                ++j;   20                ++j;
21           }   21           }
22       }   22       }
23       elemen ts = docum ent.getEle mentsByTag Name('text area');   23       elemen ts = docum ent.getEle mentsByTag Name('text area');
24       for (v ar i4 = 0;  i4 < elem ents.lengt h; i4++) {   24       for (v ar i4 = 0;  i4 < elem ents.lengt h; i4++) {
25           ho vers[j] =  elements[i 4];   25           ho vers[j] =  elements[i 4];
26           ++ j;   26           ++ j;
27       }   27       }
28          28       
29       //add  focus effe cts   29       //add  focus effe cts
30       for (v ar i4 = 0;  i4 < hove rs.length;  i4++) {   30       for (v ar i4 = 0;  i4 < hove rs.length;  i4++) {
31           ho vers[i4].o nfocus = f unction()  {this.clas sName += " Hovered";}   31           ho vers[i4].o nfocus = f unction()  {this.clas sName += " Hovered";}
32           ho vers[i4].o nblur = fu nction() { this.class Name = thi s.classNam e.replace( /Hovered/g , "");}   32           ho vers[i4].o nblur = fu nction() { this.class Name = thi s.classNam e.replace( /Hovered/g , "");}
33       }   33       }
34   }   34   }
35     35  
36     36  
37   function c orrectPNG( id)    37   function c orrectPNG( id) 
38   {       38   {
39       if (!/ MSIE (5\.5 |6\.)/.tes t(navigato r.userAgen t)) return ;   39       if (!/ MSIE (5\.5 |6\.)/.tes t(navigato r.userAgen t)) return ;
40     40  
41       var e  = document .getElemen tById (id) ;   41       var e  = document .getElemen tById (id) ;
42       if (e)   42       if (e)
43       {   43       {
44           va r imgName  = e.style. background Image   44           va r imgName  = e.style. background Image
45              45           
46           im gName = im gName.subs tring(0, i mgName.len gth-1)   46           im gName = im gName.subs tring(0, i mgName.len gth-1)
47           im gName = im gName.subs tring(4)   47           im gName = im gName.subs tring(4)
48           if  (imgName. substring( imgName.le ngth-3, im gName.leng th).toUppe rCase() ==  "PNG")         48           if  (imgName. substring( imgName.le ngth-3, im gName.leng th).toUppe rCase() ==  "PNG")      
49           {               49           {            
50                e.style. background Image = 'n one'   50                e.style. background Image = 'n one'
51                e.style. filter = " progid:DXI mageTransf orm.Micros oft.AlphaI mageLoader (src=\'" +  imgName +  "\', sizi ngMethod=' scale')"   51                e.style. filter = " progid:DXI mageTransf orm.Micros oft.AlphaI mageLoader (src=\'" +  imgName +  "\', sizi ngMethod=' scale')"
52           }   52           }
53                   53                
54       }   54       }
55     55  
56      for (va r i=0; i<d ocument.im ages.lengt h; i++)   56      for (va r i=0; i<d ocument.im ages.lengt h; i++)
57      {   57      {
58         var  img = docu ment.image s[i]   58         var  img = docu ment.image s[i]
59         var  imgName =  img.src.to UpperCase( )   59         var  imgName =  img.src.to UpperCase( )
60         if ( imgName.su bstring(im gName.leng th-3, imgN ame.length ) == "PNG" )   60         if ( imgName.su bstring(im gName.leng th-3, imgN ame.length ) == "PNG" )
61         {   61         {
62            v ar imgID =  (img.id)  ? "id='" +  img.id +  "' " : ""   62            v ar imgID =  (img.id)  ? "id='" +  img.id +  "' " : ""
63            v ar imgClas s = (img.c lassName)  ? "class=' " + img.cl assName +  "' " : ""   63            v ar imgClas s = (img.c lassName)  ? "class=' " + img.cl assName +  "' " : ""
64            v ar imgTitl e = (img.t itle) ? "t itle='" +  img.title  + "' " : " title='" +  img.alt +  "' "   64            v ar imgTitl e = (img.t itle) ? "t itle='" +  img.title  + "' " : " title='" +  img.alt +  "' "
65            v ar imgStyl e = "displ ay:inline- block;" +  img.style. cssText    65            v ar imgStyl e = "displ ay:inline- block;" +  img.style. cssText 
66            i f (img.ali gn == "lef t") imgSty le = "floa t:left;" +  imgStyle   66            i f (img.ali gn == "lef t") imgSty le = "floa t:left;" +  imgStyle
67            i f (img.ali gn == "rig ht") imgSt yle = "flo at:right;"  + imgStyl e   67            i f (img.ali gn == "rig ht") imgSt yle = "flo at:right;"  + imgStyl e
68            i f (img.par entElement .href) img Style = "c ursor:hand ;" + imgSt yle          68            i f (img.par entElement .href) img Style = "c ursor:hand ;" + imgSt yle       
69            v ar strNewH TML = "<sp an " + img ID + imgCl ass + imgT itle   69            v ar strNewH TML = "<sp an " + img ID + imgCl ass + imgT itle
70            +  " style=\ "" + "widt h:" + img. width + "p x; height: " + img.he ight + "px ;" + imgSt yle + ";"   70            +  " style=\ "" + "widt h:" + img. width + "p x; height: " + img.he ight + "px ;" + imgSt yle + ";"
71            +  "filter:p rogid:DXIm ageTransfo rm.Microso ft.AlphaIm ageLoader"   71            +  "filter:p rogid:DXIm ageTransfo rm.Microso ft.AlphaIm ageLoader"
72            +  "(src=\'"  + img.src  + "\', si zingMethod ='scale'); \"></span>   72            +  "(src=\'"  + img.src  + "\', si zingMethod ='scale'); \"></span>
73            i mg.outerHT ML = strNe wHTML   73            i mg.outerHT ML = strNe wHTML
74            i  = i-1   74            i  = i-1
75         }   75         }
76      }   76      }
77     77  
78   }   78   }
    79  
    80   function o rca_html_d ecode (id_ from, id_t o)
    81   {                                   
    82       var s  = document .getElemen tById(id_f rom).inner HTML;
    83       s = s. replace(/& #160;/gm,  ' ');
    84       s = s. replace(/\ x26gt;/gm,  '\x3e');
    85       s = s. replace(/\ x26lt;/gm,  '\x3c');
    86       s = s. replace(/& amp;quot;/ gm, '"');
    87       s = s. replace(/& quot;/gm,  '"');
    88       docume nt.getElem entById(id _to).inner HTML = s;
    89   }